Uredi

Deli z drugimi prek


TypeIdentifierAttribute Constructors

Definition

Creates a new instance of the TypeIdentifierAttribute class.

Overloads

TypeIdentifierAttribute()

Creates a new instance of the TypeIdentifierAttribute class.

TypeIdentifierAttribute(String, String)

Creates a new instance of the TypeIdentifierAttribute class with the specified scope and identifier.

TypeIdentifierAttribute()

Source:
TypeIdentifierAttribute.cs
Source:
TypeIdentifierAttribute.cs
Source:
TypeIdentifierAttribute.cs

Creates a new instance of the TypeIdentifierAttribute class.

public:
 TypeIdentifierAttribute();
public TypeIdentifierAttribute ();
Public Sub New ()

Remarks

This constructor overload does not accept parameters. Therefore, interfaces that have this attribute use the type's GUID and simple name to establish type equivalence.

Applies to

TypeIdentifierAttribute(String, String)

Source:
TypeIdentifierAttribute.cs
Source:
TypeIdentifierAttribute.cs
Source:
TypeIdentifierAttribute.cs

Creates a new instance of the TypeIdentifierAttribute class with the specified scope and identifier.

public:
 TypeIdentifierAttribute(System::String ^ scope, System::String ^ identifier);
public TypeIdentifierAttribute (string scope, string identifier);
public TypeIdentifierAttribute (string? scope, string? identifier);
new System.Runtime.InteropServices.TypeIdentifierAttribute : string * string -> System.Runtime.InteropServices.TypeIdentifierAttribute
Public Sub New (scope As String, identifier As String)

Parameters

scope
String

The first type equivalence string.

identifier
String

The second type equivalence string.

Remarks

The scope and identifier parameters are used to establish type equivalence. They are combined into a GUID and become the key that is used for type equivalence. This constructor is particularly useful for types that do not have GUIDs in their type library.

The TypeIdentifierAttribute class internally maintains the scope and identifier parameters as private members.

Applies to