Generates a unique file name within the project. Used for naming new project items.
Namespace: Microsoft.VisualStudio.Package.Automation
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function GetUniqueFilename ( _
pDispatch As Object, _
bstrRoot As String, _
bstrDesiredExt As String _
) As String
'使用
Dim instance As OAVSProject
Dim pDispatch As Object
Dim bstrRoot As String
Dim bstrDesiredExt As String
Dim returnValue As String
returnValue = instance.GetUniqueFilename(pDispatch, _
bstrRoot, bstrDesiredExt)
public string GetUniqueFilename(
Object pDispatch,
string bstrRoot,
string bstrDesiredExt
)
public:
virtual String^ GetUniqueFilename(
Object^ pDispatch,
String^ bstrRoot,
String^ bstrDesiredExt
) sealed
public final function GetUniqueFilename(
pDispatch : Object,
bstrRoot : String,
bstrDesiredExt : String
) : String
Parameters
pDispatch
Type: System.ObjectThe project in which the item will exist.
bstrRoot
Type: System.StringThe name of the item.
bstrDesiredExt
Type: System.StringThe extension to be used.
Return Value
Type: System.String
When implemented in derived classes, the unique name of the file.
Implements
VSProject.GetUniqueFilename(Object, String, String)
Remarks
This is a VSProject method and is not implemented in this class. It throws an exception.
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.