TokenProcessor.GetFileNamespace Method

Generates the namespace of the file.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Function GetFileNamespace ( _
    fileFullPath As String, _
    node As ProjectNode _
) As String
'使用
Dim instance As TokenProcessor
Dim fileFullPath As String
Dim node As ProjectNode
Dim returnValue As String

returnValue = instance.GetFileNamespace(fileFullPath, _
    node)
public string GetFileNamespace(
    string fileFullPath,
    ProjectNode node
)
public:
String^ GetFileNamespace(
    String^ fileFullPath, 
    ProjectNode^ node
)
public function GetFileNamespace(
    fileFullPath : String, 
    node : ProjectNode
) : String

Parameters

  • fileFullPath
    Type: System.String

    The absolute path of the file.

Return Value

Type: System.String

The namespace of the file.

Remarks

This method reduces the risk of name conflict between two classes added in different directories, but does not guarantee uniqueness. To guarantee uniqueness, this function should be overridden to have the language service verify that the namespace name plus class name does not conflict with any other class.

Permissions

See Also

Reference

TokenProcessor Class

TokenProcessor Members

Microsoft.VisualStudio.Package Namespace