Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether or not the project can be created.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Private Function CanCreateProject ( _
fileName As String, _
flags As UInteger, _
<OutAttribute> ByRef canCreate As Integer _
) As Integer Implements IVsProjectFactory.CanCreateProject
int IVsProjectFactory.CanCreateProject(
string fileName,
uint flags,
out int canCreate
)
private:
virtual int CanCreateProject(
String^ fileName,
unsigned int flags,
[OutAttribute] int% canCreate
) sealed = IVsProjectFactory::CanCreateProject
private abstract CanCreateProject :
fileName:string *
flags:uint32 *
canCreate:int byref -> int
private override CanCreateProject :
fileName:string *
flags:uint32 *
canCreate:int byref -> int
JScript does not support explicit interface implementations.
Parameters
- fileName
Type: System.String
The name of the file.
- flags
Type: System.UInt32
If used, values from the __VSCREATEPROJFLAGS enumeration.
- canCreate
Type: System.Int32%
[out] Returns true if the project can be created, otherwise false.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsProjectFactory.CanCreateProject(String, UInt32, Int32%)
Remarks
This method calls CanCreateProject.
.NET Framework Security
- 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.