Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ClientCredentialsSecurityTokenManager::CreateSecurityTokenProvider Method (SecurityTokenRequirement^)

 

Creates a security token provider.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
virtual SecurityTokenProvider^ CreateSecurityTokenProvider(
	SecurityTokenRequirement^ tokenRequirement
) override

Exception Condition
ArgumentNullException

tokenRequirement is null.

The SecurityTokenProvider class is responsible for obtaining tokens for a given ServiceModelSecurityTokenRequirement. Optionally token providers support renewing and canceling tokens as well.

The following code shows how to override this method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft