Compartilhar via


ClientAuthenticationWithSharedAccessKeyRefresh.SafeCreateNewTokenAsync Método

Definição

Cria um novo token com uma TTL sugerida.

protected override System.Threading.Tasks.Task<string> SafeCreateNewTokenAsync (string iotHub, TimeSpan suggestedTimeToLive);
override this.SafeCreateNewTokenAsync : string * TimeSpan -> System.Threading.Tasks.Task<string>
Protected Overrides Function SafeCreateNewTokenAsync (iotHub As String, suggestedTimeToLive As TimeSpan) As Task(Of String)

Parâmetros

iotHub
String

O nome de domínio do hub IoT.

suggestedTimeToLive
TimeSpan

O TTL sugerido.

Retornos

A cadeia de caracteres do token.

Aplica-se a