VCCodeStruct.Namespace Property

Gets an object defining the parent namespace.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

声明
ReadOnly Property Namespace As CodeNamespace
用法
Dim instance As VCCodeStruct
Dim value As CodeNamespace

value = instance.Namespace
CodeNamespace Namespace { get; }
property CodeNamespace^ Namespace {
    CodeNamespace^ get ();
}
function get Namespace () : CodeNamespace

Property Value

Type: CodeNamespace

A CodeNamespace object.

Remarks

Namespace returns the CodeNamespace object associated with this CodeType object. Namespace returns Nothing or nulla null reference (Nothing in Visual Basic) for types declared at the top level in a file or for a default or global namespace.

Permissions

See Also

Concepts

How to: Compile and Run the Automation Object Model Code Examples

Reference

VCCodeStruct Interface

VCCodeStruct Members

Microsoft.VisualStudio.VCCodeModel Namespace