Initializes an instance of T:Microsoft.IdentityModel.Protocols.XmlSignature.EnvelopingSignatureWriter. The returned writer is setup correctly to start writing the XML.
Namespace: Microsoft.IdentityModel.Protocols.XmlSignature
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

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)

Syntax

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
)

Parameters

innerWriter

Writer to wrap.

signingCredentials

SigningCredentials to be used to generate the signature.

objectId

The reference Id of the envelope.

securityTokenSerializer

Exceptions

Exception type Condition
ArgumentNullException

One of he input parameter is null.

ArgumentException

The string 'objectId' is either null or empty.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also