次の方法で共有


IVsProjectCfg2.get_DisplayName Method (String%)

Returns a string that describes the configuration and can be displayed in the environment's UI.

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

Syntax

'宣言
Function get_DisplayName ( _
    <OutAttribute> ByRef pbstrDisplayName As String _
) As Integer
'使用
Dim instance As IVsProjectCfg2
Dim pbstrDisplayName As String
Dim returnValue As Integer

returnValue = instance.get_DisplayName(pbstrDisplayName)
int get_DisplayName(
    out string pbstrDisplayName
)
int get_DisplayName(
    [OutAttribute] String^% pbstrDisplayName
)
abstract get_DisplayName : 
        pbstrDisplayName:string byref -> int 
function get_DisplayName(
    pbstrDisplayName : String
) : int

Parameters

  • pbstrDisplayName
    Type: System.String%
    [out] Pointer to the display name of the configuration.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsProjectCfg.get_DisplayName(String%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsProjectCfg2::get_DisplayName(
   [out] BSTR *pbstrDisplayName
);

Configurations can support a variety of platforms. If this configuration supports platforms, pbstrDisplayName is in the following format:

"<configname>|<platformname>."

.NET Framework Security

See Also

Reference

IVsProjectCfg2 Interface

IVsProjectCfg2 Members

get_DisplayName Overload

Microsoft.VisualStudio.Shell.Interop Namespace