ConfigurationHelper.GetCredentials<T> Method (IDictionary<String, Object>, Boolean)
Creates a new credentials object of the specified type using the registered cloud credentials providers and settings.
Namespace: Microsoft.WindowsAzure.Common.Internals
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Syntax
public static T GetCredentials<T>(
IDictionary<string, object> settings,
bool isRequired = true
)
where T : CloudCredentials
public:
generic<typename T>
where T : CloudCredentials
static T GetCredentials(
IDictionary<String^, Object^>^ settings,
bool isRequired = true
)
static member GetCredentials<'T when 'T : CloudCredentials> :
settings:IDictionary<string, Object> *
isRequired:bool = true -> 'T
Public Shared Function GetCredentials(Of T As CloudCredentials) (
settings As IDictionary(Of String, Object),
isRequired As Boolean
) As T
Parameters
settings
Type: System.Collections.Generic.IDictionary<String, Object>The collection of configuration settings.
isRequired
Type: System.BooleanThe indicator of whether to require the credentials to be found. The value is true if the credentials must be found; otherwise, false.
Return Value
Type: T
An object that represents the first provider that supports the provided settings.
Type Parameters
- T
The type of cloud credentials.
See Also
ConfigurationHelper Class
Microsoft.WindowsAzure.Common.Internals Namespace
Return to top