IProfileOperations.TrySetContext 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.
Overloads
TrySetContext(IAzureContext, String) | |
TrySetContext(String, IAzureContext) |
TrySetContext(IAzureContext, String)
public bool TrySetContext (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, out string name);
abstract member TrySetContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> bool
Public Function TrySetContext (context As IAzureContext, ByRef name As String) As Boolean
Parameters
- context
- IAzureContext
- name
- String
Returns
Applies to
TrySetContext(String, IAzureContext)
public bool TrySetContext (string name, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context);
abstract member TrySetContext : string * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> bool
Public Function TrySetContext (name As String, context As IAzureContext) As Boolean
Parameters
- name
- String
- context
- IAzureContext