Свойство SecurityTokenServiceConfiguration.SecurityTokenService
Gets or sets the type of the SecurityTokenService.
Пространство имен: Microsoft.IdentityModel.Configuration
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)
Использование
Dim instance As SecurityTokenServiceConfiguration Dim value As Type value = instance.SecurityTokenService instance.SecurityTokenService = value
Синтаксис
'Декларация
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)
Значение свойства
Returns the Type of the Security Token Service.
Пример
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 );
}
}
Исключения
Тип исключений | Условие |
---|---|
ArgumentNullException | The provided value is null. |
Примечания
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.
Безопасность потоков
Любые открытые статические члены (Shared в Visual Basic) этого типа являются поточно-ориентированными.Любые члены экземпляров не являются гарантированно поточно-ориентированными.
Платформы
Платформа разработки
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
Change History
См. также
Справочник
Класс SecurityTokenServiceConfiguration
SecurityTokenServiceConfiguration Члены
Пространство имен Microsoft.IdentityModel.Configuration