This documentation is archived and is not being maintained.

CustomToolNamespace Property (Visual Basic and C# ProjectItem Object)

Visual Studio .NET 2003

Returns or sets the default namespace for the generated files.

[Visual Basic .NET]
Public Property CustomToolNamespace() As String
[Visual Basic 6]
Property Get CustomToolNamespace() As String
Property Let CustomToolNamespace( _
   ByVal NewValue As String _
) 
[C++]
HRESULT __stdcall get_ CustomToolNamespace(
   /* [out, retval] */ BSTR* retVal
);
HRESULT __stdcall put_ CustomToolNamespace(
   /* [in] */ BSTR NewValue
);
[C#]
string CustomToolNamespace {get; set;}
[JScript .NET]
public function get CustomToolNamespace() : String
public function set CustomToolNamespace(
   NewValue : String
)

Parameters

NewValue
String. The default namespace used by the custom tool.

Return Value

String.

Remarks

Use this property to specify the default namespace, such as "ProjectName.FolderName", for the file generated by the custom tool. The namespace is created under the root namespace of the project. An empty string indicates that the namespace property of the parent folder is used.

There is no guarantee that the custom tool will generate code that uses this namespace. It is provided so the tool can have a specific namespace to put code in. There is nothing in the project system to enforce the use of this namespace by the custom tool.

This property is only meaningful for custom tools that generate code.

See Also

BuildManager Object | CustomTool Property (Visual Basic and C# ProjectItem Object) | Properties Property (General Extensibility) | ProjectItem Object

Applies To: Properties Property (Visual Basic and C# ProjectItem Object)

Show: