XmlDsigXsltTransform.GetOutput Method (Type)

 

Returns the output of the current XmlDsigXsltTransform object of type Stream.

Namespace:   System.Security.Cryptography.Xml
Assembly:  System.Security (in System.Security.dll)

public override object GetOutput(
	Type type
)

Parameters

type
Type: System.Type

The type of the output to return. Stream is the only valid type for this parameter.

Return Value

Type: System.Object

The output of the current XmlDsigXsltTransform object of type Stream.

Exception Condition
ArgumentException

The type parameter is not a Stream object.

The type of the returned object must be Stream.

The following code example demonstrates how to use the GetOutput method to retrieve the output of the current XmlDsigXsltTransform object. This code example is part of a larger example provided for the XmlDsigXsltTransform class.

Stream outputStream = (Stream)
    xmlTransform.GetOutput(typeof(System.IO.Stream));

.NET Framework
Available since 1.1
Return to top
Show: