Initializes an instance of T:Microsoft.IdentityModel.Protocols.XmlSignature.EnvelopingSignatureWriter. The returned writer is setup correctly to start writing the XML.
Пространство имен: Microsoft.IdentityModel.Protocols.XmlSignature
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

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

Visual Basic
Dim innerWriter As XmlWriter
Dim signingCredentials As SigningCredentials
Dim objectId As String
Dim securityTokenSerializer As SecurityTokenSerializer

Dim instance As New EnvelopingSignatureWriter(innerWriter, signingCredentials, objectId, securityTokenSerializer)

Синтаксис

Visual Basic
Public Sub New ( _
		innerWriter As XmlWriter, _
		signingCredentials As SigningCredentials, _
		objectId As String, _
		securityTokenSerializer As SecurityTokenSerializer _
)
C#
public EnvelopingSignatureWriter (
		XmlWriter innerWriter,
		SigningCredentials signingCredentials,
		string objectId,
		SecurityTokenSerializer securityTokenSerializer
)
C++
public:
EnvelopingSignatureWriter (
		XmlWriter^ innerWriter, 
		SigningCredentials^ signingCredentials, 
		String^ objectId, 
		SecurityTokenSerializer^ securityTokenSerializer
)
J#
public EnvelopingSignatureWriter (
		XmlWriter innerWriter, 
		SigningCredentials signingCredentials, 
		String objectId, 
		SecurityTokenSerializer securityTokenSerializer
)
JScript
public function EnvelopingSignatureWriter (
		innerWriter : XmlWriter, 
		signingCredentials : SigningCredentials, 
		objectId : String, 
		securityTokenSerializer : SecurityTokenSerializer
)

Параметры

innerWriter

Writer to wrap.

signingCredentials

SigningCredentials to be used to generate the signature.

objectId

The reference Id of the envelope.

securityTokenSerializer

Исключения

Тип исключений Условие
ArgumentNullException

One of he input parameter is null.

ArgumentException

The string 'objectId' is either null or empty.

Платформы

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

Windows Server 2003, Windows Vista

Target Platforms

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

См. также