Initializes an instance of T:Microsoft.IdentityModel.Protocols.XmlSignature.EnvelopedSignatureWriter. The returned writer can be directly used to write the envelope. The signature will be automatically generated when the envelope is completed.
Пространство имен: Microsoft.IdentityModel.Protocols.XmlSignature
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

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

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

Dim instance As New EnvelopedSignatureWriter(innerWriter, signingCredentials, referenceId, securityTokenSerializer)

Синтаксис

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

Параметры

innerWriter

Writer to wrap/

signingCredentials

SigningCredentials to be used to generate the signature.

referenceId

The reference Id of the envelope.

securityTokenSerializer

Исключения

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

One of he input parameter is null.

ArgumentException

The string 'referenceId' is either null or empty.

Платформы

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

Windows Server 2003, Windows Vista

Target Platforms

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

См. также