你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MessagingEventGridNamespacesModelFactory.FailedLockToken Method

Definition

Initializes a new instance of FailedLockToken.

public static Azure.Messaging.EventGrid.Namespaces.FailedLockToken FailedLockToken(string lockToken = default, Azure.ResponseError error = default);
static member FailedLockToken : string * Azure.ResponseError -> Azure.Messaging.EventGrid.Namespaces.FailedLockToken
Public Shared Function FailedLockToken (Optional lockToken As String = Nothing, Optional error As ResponseError = Nothing) As FailedLockToken

Parameters

lockToken
String

The lock token of an entry in the request.

error
ResponseError

Error information of the failed operation result for the lock token in the request.

Returns

A new FailedLockToken instance for mocking.

Exceptions

lockToken or error is null.

Applies to