ContextItem Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- 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
- value
- String
The context item value. Can be null
.
- scope
- Uri
The context item scope. Can be null
.
Exceptions
name
is null
.