Aracılığıyla paylaş


KeyModelFactory.DeletedKey Method

Definition

Initializes a new instance of DeletedKey for mocking purposes.

public static Azure.Security.KeyVault.Keys.DeletedKey DeletedKey (Azure.Security.KeyVault.Keys.KeyProperties properties, Azure.Security.KeyVault.Keys.JsonWebKey key, Uri recoveryId = default, DateTimeOffset? deletedOn = default, DateTimeOffset? scheduledPurgeDate = default);
static member DeletedKey : Azure.Security.KeyVault.Keys.KeyProperties * Azure.Security.KeyVault.Keys.JsonWebKey * Uri * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.Security.KeyVault.Keys.DeletedKey
Public Shared Function DeletedKey (properties As KeyProperties, key As JsonWebKey, Optional recoveryId As Uri = Nothing, Optional deletedOn As Nullable(Of DateTimeOffset) = Nothing, Optional scheduledPurgeDate As Nullable(Of DateTimeOffset) = Nothing) As DeletedKey

Parameters

properties
KeyProperties

Sets the Properties property, which provides the Id and Name properties.

key
JsonWebKey

Sets the Key property, which provides the KeyType and KeyOperations properties.

recoveryId
Uri

Sets the RecoveryId property.

deletedOn
Nullable<DateTimeOffset>

Sets the DeletedOn property.

scheduledPurgeDate
Nullable<DateTimeOffset>

Sets the ScheduledPurgeDate property.

Returns

A new instance of DeletedKey for mocking purposes.

Applies to