Partilhar via


TokenCredential Construtores

Definição

Sobrecargas

TokenCredential(String)

Crie uma instância de TokenCredential.

TokenCredential(String, RenewTokenFuncAsync, Object, TimeSpan)

Crie uma instância de TokenCredential.

TokenCredential(String)

Crie uma instância de TokenCredential.

public TokenCredential (string initialToken);
new Microsoft.Azure.Storage.Auth.TokenCredential : string -> Microsoft.Azure.Storage.Auth.TokenCredential
Public Sub New (initialToken As String)

Parâmetros

initialToken
String

Valor inicial da credencial de token.

Aplica-se a

TokenCredential(String, RenewTokenFuncAsync, Object, TimeSpan)

Crie uma instância de TokenCredential.

public TokenCredential (string initialToken, Microsoft.Azure.Storage.Auth.RenewTokenFuncAsync periodicTokenRenewer, object state, TimeSpan renewFrequency);
new Microsoft.Azure.Storage.Auth.TokenCredential : string * Microsoft.Azure.Storage.Auth.RenewTokenFuncAsync * obj * TimeSpan -> Microsoft.Azure.Storage.Auth.TokenCredential
Public Sub New (initialToken As String, periodicTokenRenewer As RenewTokenFuncAsync, state As Object, renewFrequency As TimeSpan)

Parâmetros

initialToken
String

Valor inicial da credencial de token.

periodicTokenRenewer
RenewTokenFuncAsync

Se for fornecido, esse delegado será chamado periodicamente para renovar a credencial de token.

state
Object

Um objeto de estado é passado para periodicTokenRenewer toda vez que é chamado.

renewFrequency
TimeSpan

Se periodicTokenRenewer for dado, o usuário deverá definir uma frequência para chamar periodicTokenRenewer.

Aplica-se a