ServiceMoniker 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.
Overloads
ServiceMoniker(String) |
Initializes a new instance of the ServiceMoniker class. |
ServiceMoniker(String, Version) |
Initializes a new instance of the ServiceMoniker class. |
ServiceMoniker(String)
Initializes a new instance of the ServiceMoniker class.
public:
ServiceMoniker(System::String ^ name);
public ServiceMoniker (string name);
new Microsoft.ServiceHub.Framework.ServiceMoniker : string -> Microsoft.ServiceHub.Framework.ServiceMoniker
Public Sub New (name As String)
Parameters
- name
- String
The name of the service.
Applies to
ServiceMoniker(String, Version)
Initializes a new instance of the ServiceMoniker class.
public:
ServiceMoniker(System::String ^ name, Version ^ version);
[Newtonsoft.Json.JsonConstructor]
public ServiceMoniker (string name, Version? version);
[Newtonsoft.Json.JsonConstructor]
[System.Text.Json.Serialization.JsonConstructor]
public ServiceMoniker (string name, Version? version);
[<Newtonsoft.Json.JsonConstructor>]
new Microsoft.ServiceHub.Framework.ServiceMoniker : string * Version -> Microsoft.ServiceHub.Framework.ServiceMoniker
[<Newtonsoft.Json.JsonConstructor>]
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.ServiceHub.Framework.ServiceMoniker : string * Version -> Microsoft.ServiceHub.Framework.ServiceMoniker
Public Sub New (name As String, version As Version)
Parameters
- name
- String
The name of the service.
- version
- Version
The version of the service or expected by the client. May be null.
- Attributes
-
Newtonsoft.Json.JsonConstructorAttribute JsonConstructorAttribute