Share via


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