Compartir a través de


IVsWindowFrame.GetGuidProperty Method

Returns a window frame property based on a supplied GUID.

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

Syntax

'Declaración
Function GetGuidProperty ( _
    propid As Integer, _
    <OutAttribute> ByRef pguid As Guid _
) As Integer
'Uso
Dim instance As IVsWindowFrame
Dim propid As Integer
Dim pguid As Guid
Dim returnValue As Integer

returnValue = instance.GetGuidProperty(propid, _
    pguid)
int GetGuidProperty(
    int propid,
    out Guid pguid
)
int GetGuidProperty(
    [InAttribute] int propid, 
    [OutAttribute] Guid% pguid
)
abstract GetGuidProperty : 
        propid:int * 
        pguid:Guid byref -> int 
function GetGuidProperty(
    propid : int, 
    pguid : Guid
) : int

Parameters

  • propid
    Type: System.Int32
    [in] Identifier of the property whose values are taken from the __VSFPROPID enumeration.
  • pguid
    Type: System.Guid%
    [out] Pointer to the unique identifier of the property.

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 IVsWindowFrame::GetGuidProperty(
   [in] VSFPROPID propid,
   [out] GUID *pguid
);

The following table lists property IDs for GUID properties. See __VSFPROPID for a complete list of all property types.

Property Name

Prop ID

Comments

VSFPROPID_CmdUIGuid

-4007

For all document window frames

VSFPROPID_InheritKeyBindings

-4011

For all document window frames

VSFPROPID_GuidPersistenceSlot

-5000

For all tool window frames

VSFPROPID_GuidAutoActivate

-5001

For all tool window frames

.NET Framework Security

See Also

Reference

IVsWindowFrame Interface

IVsWindowFrame Members

Microsoft.VisualStudio.Shell.Interop Namespace