共用方式為


ProvideBrokeredServiceAttribute Constructors

Definition

Overloads

ProvideBrokeredServiceAttribute(String)

Initializes a new instance of the ProvideBrokeredServiceAttribute class.

ProvideBrokeredServiceAttribute(String, String)

Initializes a new instance of the ProvideBrokeredServiceAttribute class.

ProvideBrokeredServiceAttribute(String, String, Type[])

Initializes a new instance of the ProvideBrokeredServiceAttribute class.

ProvideBrokeredServiceAttribute(String)

Initializes a new instance of the ProvideBrokeredServiceAttribute class.

public:
 ProvideBrokeredServiceAttribute(System::String ^ name);
public ProvideBrokeredServiceAttribute (string name);
new Microsoft.VisualStudio.Shell.ServiceBroker.ProvideBrokeredServiceAttribute : string -> Microsoft.VisualStudio.Shell.ServiceBroker.ProvideBrokeredServiceAttribute
Public Sub New (name As String)

Parameters

name
String

The name of the service (same as Name.)

Applies to

ProvideBrokeredServiceAttribute(String, String)

Initializes a new instance of the ProvideBrokeredServiceAttribute class.

public:
 ProvideBrokeredServiceAttribute(System::String ^ name, System::String ^ version);
public ProvideBrokeredServiceAttribute (string name, string? version);
new Microsoft.VisualStudio.Shell.ServiceBroker.ProvideBrokeredServiceAttribute : string * string -> Microsoft.VisualStudio.Shell.ServiceBroker.ProvideBrokeredServiceAttribute
Public Sub New (name As String, version As String)

Parameters

name
String

The name of the service (same as Name.)

version
String

The version of the proffered service (same as Version). May be null.

Applies to

ProvideBrokeredServiceAttribute(String, String, Type[])

Initializes a new instance of the ProvideBrokeredServiceAttribute class.

public ProvideBrokeredServiceAttribute (string name, string? version, params Type[] optionalInterfaces);
new Microsoft.VisualStudio.Shell.ServiceBroker.ProvideBrokeredServiceAttribute : string * string * Type[] -> Microsoft.VisualStudio.Shell.ServiceBroker.ProvideBrokeredServiceAttribute
Public Sub New (name As String, version As String, ParamArray optionalInterfaces As Type())

Parameters

name
String

The name of the service (same as Name.)

version
String

The version of the proffered service (same as Version). May be null.

optionalInterfaces
Type[]

An array of optional interfaces that the exported brokered service implements and wishes to advertise as available to the client.

Applies to