次の方法で共有


IVsCfgProvider2.AddCfgsOfPlatformName Method

Copies an existing platform name or creates a new one.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function AddCfgsOfPlatformName ( _
    pszPlatformName As String, _
    pszClonePlatformName As String _
) As Integer
'使用
Dim instance As IVsCfgProvider2
Dim pszPlatformName As String
Dim pszClonePlatformName As String
Dim returnValue As Integer

returnValue = instance.AddCfgsOfPlatformName(pszPlatformName, _
    pszClonePlatformName)
int AddCfgsOfPlatformName(
    string pszPlatformName,
    string pszClonePlatformName
)
int AddCfgsOfPlatformName(
    [InAttribute] String^ pszPlatformName, 
    [InAttribute] String^ pszClonePlatformName
)
function AddCfgsOfPlatformName(
    pszPlatformName : String, 
    pszClonePlatformName : String
) : int

Parameters

  • pszPlatformName
    Type: System.String

    [in] Pointer to the name of the new platform.

  • pszClonePlatformName
    Type: System.String

    [in] Pointer to the name of the platform to copy, or a null reference (Nothing in Visual Basic), indicating that AddCfgsOfPlatformName should create a new platform.

Return Value

Type: System.Int32

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsCfgProvider2::AddCfgsOfPlatformName(
   [in] LPCOLESTR pszPlatformName,
   [in] LPCOLESTR pszClonePlatformName
);

Permissions

See Also

Reference

IVsCfgProvider2 Interface

IVsCfgProvider2 Members

Microsoft.VisualStudio.Shell.Interop Namespace