Compartir a través de


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

'Declaración
Function AddCfgsOfPlatformName ( _
    pszPlatformName As String, _
    pszClonePlatformName As String _
) As Integer
'Uso
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
)
abstract AddCfgsOfPlatformName : 
        pszPlatformName:string * 
        pszClonePlatformName:string -> int 
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 nulla 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
);

.NET Framework Security

See Also

Reference

IVsCfgProvider2 Interface

IVsCfgProvider2 Members

Microsoft.VisualStudio.Shell.Interop Namespace