EncryptedReference Constructors

Definition

Initializes a new instance of the EncryptedReference class.

Overloads

EncryptedReference()

Initializes a new instance of the EncryptedReference class.

EncryptedReference(String)

Initializes a new instance of the EncryptedReference class using the specified Uniform Resource Identifier (URI).

EncryptedReference(String, TransformChain)

Initializes a new instance of the EncryptedReference class using the specified Uniform Resource Identifier (URI) and transform chain.

EncryptedReference()

Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs

Initializes a new instance of the EncryptedReference class.

C#
protected EncryptedReference();

Remarks

This constructor initializes a class that is an abstract base class used in XML encryption from which the CipherReference, KeyReference, and DataReference classes derive. Unless you have a scenario where you need to create a custom reference section in XML, use one of the inherited classes.

For more information about XML encryption standards, see XML Encryption Requirements.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

EncryptedReference(String)

Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs

Initializes a new instance of the EncryptedReference class using the specified Uniform Resource Identifier (URI).

C#
protected EncryptedReference(string uri);

Parameters

uri
String

The Uniform Resource Identifier (URI) that points to the data to encrypt.

Exceptions

The uri parameter is null.

Remarks

The uri parameter provides information about the location of the data to be encrypted.

This constructor initializes a class that is an abstract base class used in XML encryption from which the CipherReference, KeyReference, and DataReference classes derive. Unless you have a scenario where you need to create a custom reference section in XML, use one of the inherited classes.

For more information about XML encryption standards, see XML Encryption Requirements.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

EncryptedReference(String, TransformChain)

Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs
Source:
EncryptedReference.cs

Initializes a new instance of the EncryptedReference class using the specified Uniform Resource Identifier (URI) and transform chain.

C#
protected EncryptedReference(string uri, System.Security.Cryptography.Xml.TransformChain transformChain);

Parameters

uri
String

The Uniform Resource Identifier (URI) that points to the data to encrypt.

transformChain
TransformChain

A TransformChain object that describes transforms to be done on the data to encrypt.

Exceptions

The uri parameter is null.

Remarks

This class is an abstract base class used in XML encryption from which the CipherReference, KeyReference, and DataReference classes derive. Unless you have a scenario where you need to create a custom reference section in XML, use one of the inherited classes.

For more information about XML encryption standards, see XML Encryption Requirements.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10