DiscoveryDocumentReference Constructors

Definition

Initializes a new instance of the DiscoveryDocumentReference class.

Overloads

DiscoveryDocumentReference()

Initializes a new instance of the DiscoveryDocumentReference class.

DiscoveryDocumentReference(String)

Initializes a new instance of the DiscoveryDocumentReference class, setting the Ref property to the value of href.

DiscoveryDocumentReference()

Initializes a new instance of the DiscoveryDocumentReference class.

C#
public DiscoveryDocumentReference();

Examples

C#
// Create a new instance of DiscoveryDocumentReference.
DiscoveryDocumentReference myDiscoveryDocumentReference =
    new DiscoveryDocumentReference();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 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

DiscoveryDocumentReference(String)

Initializes a new instance of the DiscoveryDocumentReference class, setting the Ref property to the value of href.

C#
public DiscoveryDocumentReference(string href);

Parameters

href
String

Reference to a discovery document. The Ref property is set to the value of href.

Examples

C#
DiscoveryDocumentReference myDiscoveryDocumentReference =
    new DiscoveryDocumentReference(
    "http://localhost/Sample_cs.disco");

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 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