Freigeben über


SecurityTokenServiceConfiguration.DefaultTokenLifetime Property

Gets or sets the default lifetime (defaultTokenLifetime property) used in the issued tokens.

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

Verwendung

    Dim instance As SecurityTokenServiceConfiguration
Dim value As TimeSpan

value = instance.DefaultTokenLifetime

instance.DefaultTokenLifetime = value

Syntax

'Declaration
Public Property DefaultTokenLifetime As TimeSpan
public TimeSpan DefaultTokenLifetime { get; set; }
public:
property TimeSpan DefaultTokenLifetime {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public TimeSpan get_DefaultTokenLifetime ()

/** @property */
public void set_DefaultTokenLifetime (TimeSpan value)
public function get DefaultTokenLifetime () : TimeSpan

public function set DefaultTokenLifetime (value : TimeSpan)

Eigenschaftenwert

Returns TimeSpan.

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

Siehe auch

Referenz

SecurityTokenServiceConfiguration Class
SecurityTokenServiceConfiguration Members
Microsoft.IdentityModel.Configuration Namespace