Export (0) Print
Expand All

XmlDsigC14NTransform.GetOutput Method (Type)

Returns the output of the current XmlDsigC14NTransform 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 XmlDsigC14NTransform object of type Stream.

ExceptionCondition
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 XmlDsigC14NTransform object. This code example is part of a larger example provided for the XmlDsigC14NTransform class.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft