Creates an instance of SecurityTokenService from the type specified in SecurityTokenServiceConfiguration.SecurityTokenService. The method expects the type to implement a constructor that takes in the SecurityTokenServiceConfiguration.
Namespace: Microsoft.IdentityModel.Configuration
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As SecurityTokenServiceConfiguration
Dim returnValue As SecurityTokenService

returnValue = instance.CreateSecurityTokenService

Syntax

Visual Basic
Public Overridable Function CreateSecurityTokenService As SecurityTokenService
C#
public virtual SecurityTokenService CreateSecurityTokenService ()
C++
public:
virtual SecurityTokenService^ CreateSecurityTokenService ()
J#
public SecurityTokenService CreateSecurityTokenService ()
JScript
public function CreateSecurityTokenService () : SecurityTokenService

Return Value

Instance of SecurityTokenService.

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also