ComSourceInterfacesAttribute Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy ComSourceInterfacesAttribute.
Przeciążenia
| Nazwa | Opis |
|---|---|
| ComSourceInterfacesAttribute(String) |
Inicjuje nowe wystąpienie ComSourceInterfacesAttribute klasy o nazwie interfejsu źródła zdarzeń. |
| ComSourceInterfacesAttribute(Type) |
Inicjuje nowe wystąpienie ComSourceInterfacesAttribute klasy z typem używanym jako interfejs źródłowy. |
| ComSourceInterfacesAttribute(Type, Type) |
Inicjuje ComSourceInterfacesAttribute nowe wystąpienie klasy z typami, które mają być używane jako interfejsy źródłowe. |
| ComSourceInterfacesAttribute(Type, Type, Type) |
Inicjuje |
| ComSourceInterfacesAttribute(Type, Type, Type, Type) |
Inicjuje ComSourceInterfacesAttribute nowe wystąpienie klasy z typami, które mają być używane jako interfejsy źródłowe. |
ComSourceInterfacesAttribute(String)
Inicjuje nowe wystąpienie ComSourceInterfacesAttribute klasy o nazwie interfejsu źródła zdarzeń.
public:
ComSourceInterfacesAttribute(System::String ^ sourceInterfaces);
public ComSourceInterfacesAttribute(string sourceInterfaces);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : string -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterfaces As String)
Parametry
- sourceInterfaces
- String
Rozdzielana wartością null lista w pełni kwalifikowanych nazw interfejsów źródła zdarzeń.
Uwagi
Użyj tego konstruktora, aby uwidocznić więcej niż cztery interfejsy źródła zdarzeń klientom COM.
Dotyczy
ComSourceInterfacesAttribute(Type)
Inicjuje nowe wystąpienie ComSourceInterfacesAttribute klasy z typem używanym jako interfejs źródłowy.
public:
ComSourceInterfacesAttribute(Type ^ sourceInterface);
public ComSourceInterfacesAttribute(Type sourceInterface);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : Type -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterface As Type)
Parametry
Uwagi
Ten konstruktor umożliwia uwidacznienie pojedynczego interfejsu źródła zdarzeń klientom COM.
Dotyczy
ComSourceInterfacesAttribute(Type, Type)
Inicjuje ComSourceInterfacesAttribute nowe wystąpienie klasy z typami, które mają być używane jako interfejsy źródłowe.
public:
ComSourceInterfacesAttribute(Type ^ sourceInterface1, Type ^ sourceInterface2);
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : Type * Type -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterface1 As Type, sourceInterface2 As Type)
Parametry
Uwagi
Użyj tego konstruktora, aby uwidocznić dwa interfejsy źródła zdarzeń klientom COM.
Dotyczy
ComSourceInterfacesAttribute(Type, Type, Type)
Inicjuje ComSourceInterfacesAttribute nowe wystąpienie klasy z typami, które mają być używane jako interfejsy źródłowe.
public:
ComSourceInterfacesAttribute(Type ^ sourceInterface1, Type ^ sourceInterface2, Type ^ sourceInterface3);
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2, Type sourceInterface3);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : Type * Type * Type -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterface1 As Type, sourceInterface2 As Type, sourceInterface3 As Type)
Parametry
Uwagi
Użyj tego konstruktora, aby uwidocznić trzy interfejsy źródła zdarzeń klientom COM.
Dotyczy
ComSourceInterfacesAttribute(Type, Type, Type, Type)
Inicjuje ComSourceInterfacesAttribute nowe wystąpienie klasy z typami, które mają być używane jako interfejsy źródłowe.
public:
ComSourceInterfacesAttribute(Type ^ sourceInterface1, Type ^ sourceInterface2, Type ^ sourceInterface3, Type ^ sourceInterface4);
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2, Type sourceInterface3, Type sourceInterface4);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : Type * Type * Type * Type -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterface1 As Type, sourceInterface2 As Type, sourceInterface3 As Type, sourceInterface4 As Type)
Parametry
Uwagi
Ten konstruktor umożliwia uwidocznienie czterech interfejsów źródła zdarzeń klientom COM.