TypeDefinition 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public value class TypeDefinition
public struct TypeDefinition
public readonly struct TypeDefinition
type TypeDefinition = struct
Public Structure TypeDefinition
- 繼承
屬性
| 名稱 | Description |
|---|---|
| Attributes | |
| BaseType |
取得型別定義的基底型別:TypeSpecificationHandle、TypeReferenceHandle 或 TypeDefinitionHandle。 |
| IsNested |
取得值,這個值指出這是否為巢狀型別。 |
| Name |
取得類型名稱。 |
| Namespace |
取得型別定義所在之命名空間的完整名稱。 |
| NamespaceDefinition |
取得型別定義所在之命名空間的定義控制代碼。 |
方法
| 名稱 | Description |
|---|---|
| GetCustomAttributes() | |
| GetDeclarativeSecurityAttributes() | |
| GetDeclaringType() |
傳回指定巢狀型別的封入型別。 |
| GetEvents() | |
| GetFields() | |
| GetGenericParameters() | |
| GetInterfaceImplementations() | |
| GetLayout() | |
| GetMethodImplementations() | |
| GetMethods() | |
| GetNestedTypes() |
傳回指定型別中巢狀型別的陣列。 |
| GetProperties() | |