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

ScopeHelpers.GetContextModificationScopeForProcess(DebugWriter) Method

Definition

Get the context modification scope for the current process. 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 GetContextModificationScopeForProcess (Microsoft.Azure.Commands.Profile.Common.DebugWriter writer);
static member GetContextModificationScopeForProcess : Microsoft.Azure.Commands.Profile.Common.DebugWriter -> Microsoft.Azure.Commands.Profile.Common.ContextModificationScope
Public Shared Function GetContextModificationScopeForProcess (writer As DebugWriter) As ContextModificationScope

Parameters

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