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.StringThe absolute path of the file.
node
Type: Microsoft.VisualStudio.Package.ProjectNodeThe ProjectNode representing the project to which this file belongs.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.