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() | |