VCCodeStruct.Namespace 属性

定义

获取定义父命名空间的对象。

public:
 property EnvDTE::CodeNamespace ^ Namespace { EnvDTE::CodeNamespace ^ get(); };
public:
 property EnvDTE::CodeNamespace ^ Namespace { EnvDTE::CodeNamespace ^ get(); };
[System.Runtime.InteropServices.DispId(32)]
public EnvDTE.CodeNamespace Namespace { [System.Runtime.InteropServices.DispId(32)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(32)>]
[<get: System.Runtime.InteropServices.DispId(32)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.Namespace : EnvDTE.CodeNamespace
Public ReadOnly Property Namespace As CodeNamespace

属性值

CodeNamespace

CodeNamespace 对象。

属性

注解

Namespace 返回 CodeNamespace 与此对象关联的对象 CodeTypeNamespace 返回 Nothingnull 对于在文件中的顶级声明的类型,或者为默认命名空间或全局命名空间。

适用于