Partager via


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

'Déclaration
Function IsAddWebProjectSupported ( _
    <OutAttribute> ByRef pfResult As Boolean _
) As Integer
'Utilisation
Dim instance As IVsSccAddWebProjectFromSourceControl
Dim pfResult As Boolean
Dim returnValue As Integer

returnValue = instance.IsAddWebProjectSupported(pfResult)
int IsAddWebProjectSupported(
    out bool pfResult
)
int IsAddWebProjectSupported(
    [OutAttribute] bool% pfResult
)
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.

Permissions

See Also

Reference

IVsSccAddWebProjectFromSourceControl Interface

IVsSccAddWebProjectFromSourceControl Members

Microsoft.VisualStudio.Shell.Interop Namespace