IVsSccAddWebProjectFromSourceControl.IsAddWebProjectSupported Method
Determines whether the addition of a Web-based project to the current solution directly from source control is supported.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function IsAddWebProjectSupported ( _
<OutAttribute> ByRef pfResult As Boolean _
) As Integer
int IsAddWebProjectSupported(
out bool pfResult
)
int IsAddWebProjectSupported(
[OutAttribute] bool% pfResult
)
abstract IsAddWebProjectSupported :
pfResult:bool byref -> int
function IsAddWebProjectSupported(
pfResult : boolean
) : int
Parameters
- pfResult
Type: System.Boolean%
[out] Returns true (nonzero) if the addition of a Web-based project from source control is supported; otherwise, returns false (zero).
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If E_FAIL is returned, there is no active source control package or the current source control package does not support this functionality. If this method fails, it returns an error code.
Remarks
COM Signature
From ivssccaddwebprojectfromsourcecontrol.idl
HRESULT IsAddWebProjectSupported(
[out] VARIANT_BOOL * pfResult
);
If pfResult returns true, then Visual Studio will enable the controls for the addition of a Web-based project to the current solution from source control. Otherwise, the controls remain disabled.
.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.