Gets or sets the type of the SecurityTokenService.
Namespace: Microsoft.IdentityModel.Configuration
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As SecurityTokenServiceConfiguration
Dim value As Type

value = instance.SecurityTokenService

instance.SecurityTokenService = value

Syntax

Visual Basic
Public Property SecurityTokenService As Type
C#
public Type SecurityTokenService { get; set; }
C++
public:
property Type^ SecurityTokenService {
		Type^ get ();
		void set (Type^ value);
}
J#
/** @property */
public Type get_SecurityTokenService ()

/** @property */
public void set_SecurityTokenService (Type value)
JScript
public function get SecurityTokenService () : Type

public function set SecurityTokenService (value : Type)

Property Value

Returns the Type of the Security Token Service.

Example

Following code snippet illustrates how to set custom security token service (MySecurityTokenService):

  Copy Code
public class CustomSecurityTokenServiceConfiguration : SecurityTokenServiceConfiguration
	{
		public CustomSecurityTokenServiceConfiguration()
			: base( "My Security Token Service" )
		{
// Sets the security token service of type 
// MySecurityTokenService.
			SecurityTokenService = typeof( MySecurityTokenService );
	}
}

Exceptions

Exception type Condition
ArgumentNullException

The provided value is null.

Remarks

To configure security token service with a custom security token service, which is built by deriving from Security Token Service class, set this property to the type of custom security token service.


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