次の方法で共有


IVsUIHierarchy.SetGuidProperty Method (UInt32, Int32, Guid%)

Sets properties whose values are GUIDs.

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

Syntax

'宣言
Function SetGuidProperty ( _
    itemid As UInteger, _
    propid As Integer, _
    ByRef rguid As Guid _
) As Integer
'使用
Dim instance As IVsUIHierarchy
Dim itemid As UInteger
Dim propid As Integer
Dim rguid As Guid
Dim returnValue As Integer

returnValue = instance.SetGuidProperty(itemid, _
    propid, rguid)
int SetGuidProperty(
    uint itemid,
    int propid,
    ref Guid rguid
)
int SetGuidProperty(
    [InAttribute] unsigned int itemid, 
    [InAttribute] int propid, 
    [InAttribute] Guid% rguid
)
abstract SetGuidProperty : 
        itemid:uint32 * 
        propid:int * 
        rguid:Guid byref -> int 
function SetGuidProperty(
    itemid : uint, 
    propid : int, 
    rguid : Guid
) : int

Parameters

  • itemid
    Type: System.UInt32
    [in] Identifier of the hierarchy item that is to be set. For a list of itemid values, see VSITEMID.
  • propid
    Type: System.Int32
    [in] Identifier of the property in the given hierarchy item. For a list of propid values, see __VSHPROPID.

Return Value

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

Implements

IVsHierarchy.SetGuidProperty(UInt32, Int32, Guid%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIHierarchy::SetGuidProperty(
   [in] VSITEMID itemid,
   [in] VSHPROPID propid,
   [in] REFGUID rguid
);

This method is called by the environment to set a specific property on the hierarchy.

.NET Framework Security

See Also

Reference

IVsUIHierarchy Interface

IVsUIHierarchy Members

SetGuidProperty Overload

Microsoft.VisualStudio.Shell.Interop Namespace