次の方法で共有


InMemoryCryptoProviderCache.TryAdd(SignatureProvider) Method

Definition

Trys to adds a SignatureProvider to this cache.

public override bool TryAdd (Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider);
override this.TryAdd : Microsoft.IdentityModel.Tokens.SignatureProvider -> bool
Public Overrides Function TryAdd (signatureProvider As SignatureProvider) As Boolean

Parameters

signatureProvider
SignatureProvider

SignatureProvider to cache.

Returns

true if the SignatureProvider was added, false if the cache already contained the SignatureProvider or if SignatureProvider should not be cached.

Exceptions

if signatureProvider is null.

Remarks

if the SignatureProvider is added CryptoProviderCache will be set to 'this'.

Applies to