你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ScopeHelpers.GetContextModificationScopeForUser Method

Definition

Get the context modification scope for the current user. This will be 'Process' if changes should only affect the current PowerShell session, or 'CurrentUser' if any changes should be global.

public static Microsoft.Azure.Commands.Profile.Common.ContextModificationScope GetContextModificationScopeForUser (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSession session, Microsoft.Azure.Commands.Profile.Common.DebugWriter writer);
static member GetContextModificationScopeForUser : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSession * Microsoft.Azure.Commands.Profile.Common.DebugWriter -> Microsoft.Azure.Commands.Profile.Common.ContextModificationScope
Public Shared Function GetContextModificationScopeForUser (session As IAzureSession, writer As DebugWriter) As ContextModificationScope

Parameters

session
IAzureSession

The PowerShell session to be affected

writer
DebugWriter

A writer to write debug messages

Returns

'Process' if all changes should only impact the current session, or 'CurrentUser' if changes should be global.

Applies to