InMemoryCryptoProviderCache.TryAdd(SignatureProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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'.