ProjectNode.SetSccLocation Method

Sets the source code control location when a project is initially added to source control, or when some of the project's settings are changed.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function SetSccLocation ( _
    sccProjectName As String, _
    sccAuxPath As String, _
    sccLocalPath As String, _
    sccProvider As String _
) As Integer
'使用
Dim instance As ProjectNode
Dim sccProjectName As String
Dim sccAuxPath As String
Dim sccLocalPath As String
Dim sccProvider As String
Dim returnValue As Integer

returnValue = instance.SetSccLocation(sccProjectName, _
    sccAuxPath, sccLocalPath, sccProvider)
public virtual int SetSccLocation(
    string sccProjectName,
    string sccAuxPath,
    string sccLocalPath,
    string sccProvider
)
public:
virtual int SetSccLocation(
    String^ sccProjectName, 
    String^ sccAuxPath, 
    String^ sccLocalPath, 
    String^ sccProvider
)
public function SetSccLocation(
    sccProjectName : String, 
    sccAuxPath : String, 
    sccLocalPath : String, 
    sccProvider : String
) : int

Parameters

  • sccProjectName
    Type: System.String

    The name of the source code control project. This should be persisted in the project file.

  • sccAuxPath
    Type: System.String

    The path to the server. This should be persisted in the project file.

  • sccLocalPath
    Type: System.String

    The local path to the project. This should be persisted in the project file.

  • sccProvider
    Type: System.String

    The source code control package. This should be persisted in the project file.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsSccProject2.SetSccLocation(String, String, String, String)

Remarks

This method is called by the source control system for this project.

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace