Partager via


IVsWindowFrame.SetGuidProperty Method

Sets 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

'Declaration
Function SetGuidProperty ( _
    propid As Integer, _
    ByRef rguid As Guid _
) As Integer
int SetGuidProperty(
    int propid,
    ref Guid rguid
)
int SetGuidProperty(
    [InAttribute] int propid, 
    [InAttribute] Guid% rguid
)
abstract SetGuidProperty : 
        propid:int * 
        rguid:Guid byref -> int
function SetGuidProperty(
    propid : int, 
    rguid : Guid
) : int

Parameters

  • propid
    Type: Int32

    [in] Identifier of the property whose values are taken from the __VSFPROPID enumeration.

  • rguid
    Type: Guid%

    [in] Unique identifier of the property to set.

Return Value

Type: 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::SetGuidProperty(
   [in] VSFPROPID propid,
   [in] REFGUID rguid
);

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

Microsoft.VisualStudio.Shell.Interop Namespace