TypeIdentifierAttribute 생성자

정의

TypeIdentifierAttribute 클래스의 새 인스턴스를 만듭니다.

오버로드

TypeIdentifierAttribute()

TypeIdentifierAttribute 클래스의 새 인스턴스를 만듭니다.

TypeIdentifierAttribute(String, String)

지정된 범위와 식별자를 사용하여 TypeIdentifierAttribute 클래스의 새 인스턴스를 만듭니다.

TypeIdentifierAttribute()

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

TypeIdentifierAttribute 클래스의 새 인스턴스를 만듭니다.

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

설명

이 생성자 오버로드는 매개 변수를 허용하지 않습니다. 따라서 이 특성이 있는 인터페이스는 형식의 GUID와 간단한 이름을 사용하여 형식 동등성을 설정합니다.

적용 대상

TypeIdentifierAttribute(String, String)

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

지정된 범위와 식별자를 사용하여 TypeIdentifierAttribute 클래스의 새 인스턴스를 만듭니다.

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)

매개 변수

scope
String

첫 번째 동일 형식 문자열입니다.

identifier
String

두 번째 동일 형식 문자열입니다.

설명

scopeidentifier 매개 변수는 형식 동등성을 설정하는 데 사용됩니다. GUID로 결합되어 형식 동등성에 사용되는 키가 됩니다. 이 생성자는 형식 라이브러리에 GUID가 없는 형식에 특히 유용합니다.

클래스는 TypeIdentifierAttribute 내부적으로 및 identifier 매개 변수를 scope 프라이빗 멤버로 유지 관리합니다.

적용 대상