ContextItem Constructors

Definition

Initializes a new instance of the ContextItem class.

Overloads

ContextItem(Uri)

Initializes a new instance of the ContextItem class with the specified Name URI.

ContextItem(Uri, String)

Initializes a new instance of the ContextItem class with the specified Name URI and value.

ContextItem(Uri, String, Uri)

Initializes a new instance of the ContextItem class with the specified Name URI, value, and Scope URI.

ContextItem(Uri)

Initializes a new instance of the ContextItem class with the specified Name URI.

public:
 ContextItem(Uri ^ name);
public ContextItem (Uri name);
new System.IdentityModel.Protocols.WSTrust.ContextItem : Uri -> System.IdentityModel.Protocols.WSTrust.ContextItem
Public Sub New (name As Uri)

Parameters

name
Uri

A Uri that indicates the context item name.

Exceptions

name is null.

name is not an absolute URI.

Remarks

The Value property and the Scope property are set to null in the new instance.

Applies to

ContextItem(Uri, String)

Initializes a new instance of the ContextItem class with the specified Name URI and value.

public:
 ContextItem(Uri ^ name, System::String ^ value);
public ContextItem (Uri name, string value);
new System.IdentityModel.Protocols.WSTrust.ContextItem : Uri * string -> System.IdentityModel.Protocols.WSTrust.ContextItem
Public Sub New (name As Uri, value As String)

Parameters

name
Uri

A Uri that indicates the context item name.

value
String

The context item value. Can be null.

Exceptions

name is null.

name is not an absolute URI.

Remarks

The Scope property is set to null in the new instance.

Applies to

ContextItem(Uri, String, Uri)

Initializes a new instance of the ContextItem class with the specified Name URI, value, and Scope URI.

public:
 ContextItem(Uri ^ name, System::String ^ value, Uri ^ scope);
public ContextItem (Uri name, string value, Uri scope);
new System.IdentityModel.Protocols.WSTrust.ContextItem : Uri * string * Uri -> System.IdentityModel.Protocols.WSTrust.ContextItem
Public Sub New (name As Uri, value As String, scope As Uri)

Parameters

name
Uri

A Uri that indicates the context item name.

value
String

The context item value. Can be null.

scope
Uri

The context item scope. Can be null.

Exceptions

name is null.

name is not an absolute URI.

-or-

scope is not null and is not an absolute URI.

Applies to