OAVSProject.GetUniqueFilename Method

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.Object

    The project in which the item will exist.

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

See Also

Reference

OAVSProject Class

OAVSProject Members

Microsoft.VisualStudio.Package.Automation Namespace