GetTokenOptions.WithAdditionalScopes(ReadOnlyMemory<String>) 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.
Creates a new instance of GetTokenOptions by combining the current scopes with additional scopes.
public System.ClientModel.Primitives.GetTokenOptions WithAdditionalScopes(ReadOnlyMemory<string> additionalScopes);
member this.WithAdditionalScopes : ReadOnlyMemory<string> -> System.ClientModel.Primitives.GetTokenOptions
Public Function WithAdditionalScopes (additionalScopes As ReadOnlyMemory(Of String)) As GetTokenOptions
Parameters
- additionalScopes
- ReadOnlyMemory<String>
Additional authentication scopes to be combined with existing ones.
Returns
A new GetTokenOptions instance containing both original and additional scopes.
Remarks
This method creates a new options instance rather than modifying the existing one, maintaining immutability. The order of scopes is preserved, with original scopes followed by additional scopes.