TypeDefinition TypeDefinition TypeDefinition TypeDefinition Struct

定義

public value class TypeDefinition
public struct TypeDefinition
type TypeDefinition = struct
Public Structure TypeDefinition
繼承
TypeDefinitionTypeDefinitionTypeDefinitionTypeDefinition

屬性

Attributes Attributes Attributes Attributes
BaseType BaseType BaseType BaseType

取得型別定義的基底型別:TypeSpecificationHandleTypeReferenceHandleTypeDefinitionHandleGets the base type of the type definition: either TypeSpecificationHandle, TypeReferenceHandle or TypeDefinitionHandle.

IsNested IsNested IsNested IsNested

取得值,這個值指出這是否為巢狀型別。Gets a value that indicates whether this is a nested type.

Name Name Name Name

取得型別的名稱。Gets the name of the type.

Namespace Namespace Namespace Namespace

取得型別定義所在之命名空間的完整名稱。Gets the full name of the namespace where the type is defined.

NamespaceDefinition NamespaceDefinition NamespaceDefinition NamespaceDefinition

取得型別定義所在之命名空間的定義控制代碼。Gets the definition handle of the namespace where the type is defined.

方法

GetCustomAttributes() GetCustomAttributes() GetCustomAttributes() GetCustomAttributes()
GetDeclarativeSecurityAttributes() GetDeclarativeSecurityAttributes() GetDeclarativeSecurityAttributes() GetDeclarativeSecurityAttributes()
GetDeclaringType() GetDeclaringType() GetDeclaringType() GetDeclaringType()

傳回指定巢狀型別的封入型別。Returns the enclosing type of a specified nested type.

GetEvents() GetEvents() GetEvents() GetEvents()
GetFields() GetFields() GetFields() GetFields()
GetGenericParameters() GetGenericParameters() GetGenericParameters() GetGenericParameters()
GetInterfaceImplementations() GetInterfaceImplementations() GetInterfaceImplementations() GetInterfaceImplementations()
GetLayout() GetLayout() GetLayout() GetLayout()
GetMethodImplementations() GetMethodImplementations() GetMethodImplementations() GetMethodImplementations()
GetMethods() GetMethods() GetMethods() GetMethods()
GetNestedTypes() GetNestedTypes() GetNestedTypes() GetNestedTypes()

傳回指定型別中巢狀型別的陣列。Returns an array of types nested in the specified type.

GetProperties() GetProperties() GetProperties() GetProperties()

適用於