CodeDirective 类
定义
用作代码指令类的基类。Serves as the base class for code directive classes.
public ref class CodeDirective : System::CodeDom::CodeObject
public class CodeDirective : System.CodeDom.CodeObject
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public class CodeDirective : System.CodeDom.CodeObject
type CodeDirective = class
inherit CodeObject
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type CodeDirective = class
inherit CodeObject
Public Class CodeDirective
Inherits CodeObject
- 继承
- 派生
- 属性
注解
类必须从 CodeDirective 类继承,才能包含在中 CodeDirectiveCollection 。A class must inherit from the CodeDirective class to be contained in a CodeDirectiveCollection.
构造函数
| CodeDirective() |
初始化 CodeDirective 类的新实例。Initializes a new instance of the CodeDirective class. |
属性
| UserData |
获取当前对象的用户可定义数据。Gets the user-definable data for the current object. (继承自 CodeObject) |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |