Freigeben über


SecurityTokenServiceConfiguration.SecurityTokenService Property

Gets or sets the type of the SecurityTokenService.

Namespace: Microsoft.IdentityModel.Configuration
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Verwendung

    Dim instance As SecurityTokenServiceConfiguration
Dim value As Type

value = instance.SecurityTokenService

instance.SecurityTokenService = value

Syntax

'Declaration
Public Property SecurityTokenService As Type
public Type SecurityTokenService { get; set; }
public:
property Type^ SecurityTokenService {
    Type^ get ();
    void set (Type^ value);
}
/** @property */
public Type get_SecurityTokenService ()

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

public function set SecurityTokenService (value : Type)

Eigenschaftenwert

Returns the Type of the Security Token Service.

Beispiel

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

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

Ausnahmen

Ausnahmetyp Bedingung
ArgumentNullException

The provided value is null.

Hinweise

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.

Threadsicherheit

Beliebige öffentliche, statische (Freigegebene in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Plattformen

Entwicklungsplattformen

Windows Server 2003, Windows Vista

Target Platforms

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

Change History

Siehe auch

Referenz

SecurityTokenServiceConfiguration Class
SecurityTokenServiceConfiguration Members
Microsoft.IdentityModel.Configuration Namespace