Marshal.GenerateProgIdForType(Type) Yöntem

Tanım

Belirtilen tür için programlı tanımlayıcı (ProgID) döndürür.

public:
 static System::String ^ GenerateProgIdForType(Type ^ type);
public static string? GenerateProgIdForType (Type type);
public static string GenerateProgIdForType (Type type);
[System.Security.SecurityCritical]
public static string GenerateProgIdForType (Type type);
static member GenerateProgIdForType : Type -> string
[<System.Security.SecurityCritical>]
static member GenerateProgIdForType : Type -> string
Public Shared Function GenerateProgIdForType (type As Type) As String

Parametreler

type
Type

ProgID alınacak tür.

Döndürülenler

Belirtilen türün ProgID değeri.

Öznitelikler

Özel durumlar

type parametresi, COM tarafından oluşturulabilecek bir sınıf değil. Sınıfın genel olması, ortak parametresiz bir oluşturucuya sahip olması ve COM görünür olması gerekir.

type parametresidirnull.

Açıklamalar

Türün meta verilerinde bir ProgID varsa, bu ProgID döndürülür. Aksi takdirde, türün tam adı temel alınarak bir ProgID oluşturulur.

Şunlara uygulanır