IVsUIShell.GetAppName Method
Returns the name of the application.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Déclaration
Function GetAppName ( _
<OutAttribute> ByRef pbstrAppName As String _
) As Integer
'Utilisation
Dim instance As IVsUIShell
Dim pbstrAppName As String
Dim returnValue As Integer
returnValue = instance.GetAppName(pbstrAppName)
int GetAppName(
out string pbstrAppName
)
int GetAppName(
[OutAttribute] String^% pbstrAppName
)
abstract GetAppName :
pbstrAppName:string byref -> int
function GetAppName(
pbstrAppName : String
) : int
Parameters
- pbstrAppName
Type: System.String%
[out] Pointer to the name of the application
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 IVsUIShell::GetAppName(
[out] BSTR * pbstrAppName
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.