Definition of Trust Contract Implementation. Implements the following ServiceContract interfaces, 1. IWSTrustFeb2005SyncContract 2. IWSTrust13SyncContract 3. IWSTrustFeb2005AsyncContract 4. IWSTrust13AsyncContract
Пространство имен: Microsoft.IdentityModel.Protocols.WSTrust
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

Visual Basic
Dim instance As WSTrustServiceContract

Синтаксис

Visual Basic
<AspNetCompatibilityRequirementsAttribute(RequirementsMode:=AspNetCompatibilityRequirementsMode.Allowed)> _
<ServiceBehaviorAttribute(Name:="SecurityTokenService", Namespace:="http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice", InstanceContextMode:=InstanceContextMode.Single, ConcurrencyMode:=ConcurrencyMode.Multiple)> _
Public Class WSTrustServiceContract
		Implements IWSTrustFeb2005SyncContract, IWSTrust13SyncContract, IWSTrustFeb2005AsyncContract, IWSTrust13AsyncContract, _
		IWsdlExportExtension, IContractBehavior
C#
[AspNetCompatibilityRequirementsAttribute(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)] 
[ServiceBehaviorAttribute(Name="SecurityTokenService", Namespace="http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice", InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple)] 
public class WSTrustServiceContract : IWSTrustFeb2005SyncContract, IWSTrust13SyncContract, IWSTrustFeb2005AsyncContract, 
		IWSTrust13AsyncContract, IWsdlExportExtension, IContractBehavior
C++
[AspNetCompatibilityRequirementsAttribute(RequirementsMode=AspNetCompatibilityRequirementsMode::Allowed)] 
[ServiceBehaviorAttribute(Name=L"SecurityTokenService", Namespace=L"http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice", InstanceContextMode=InstanceContextMode::Single, ConcurrencyMode=ConcurrencyMode::Multiple)] 
public ref class WSTrustServiceContract : IWSTrustFeb2005SyncContract, IWSTrust13SyncContract, IWSTrustFeb2005AsyncContract, 
		IWSTrust13AsyncContract, IWsdlExportExtension, IContractBehavior
J#
/** @attribute AspNetCompatibilityRequirementsAttribute(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed) */ 
/** @attribute ServiceBehaviorAttribute(Name="SecurityTokenService", Namespace="http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice", InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple) */ 
public class WSTrustServiceContract implements IWSTrustFeb2005SyncContract, IWSTrust13SyncContract, 
		IWSTrustFeb2005AsyncContract, IWSTrust13AsyncContract, IWsdlExportExtension, IContractBehavior
JScript
AspNetCompatibilityRequirementsAttribute(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed) 
ServiceBehaviorAttribute(Name="SecurityTokenService", Namespace="http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice", InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple) 
public class WSTrustServiceContract implements IWSTrustFeb2005SyncContract, IWSTrust13SyncContract, 
		IWSTrustFeb2005AsyncContract, IWSTrust13AsyncContract, IWsdlExportExtension, IContractBehavior

Иерархия наследования

System.Object
  Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract

Безопасность потоков

Любые открытые статические члены (Shared в Visual Basic) этого типа являются поточно-ориентированными.Любые члены экземпляров не являются гарантированно поточно-ориентированными.

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

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

См. также