ScopeHelpers.GetContextModificationScopeForUser Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.