Compartilhar via


IVsTaskItem2.IsCustomColumnReadOnly Method

Determines if a customized task field is set to read-only status.

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

Syntax

'Declaration
Function IsCustomColumnReadOnly ( _
    ByRef guidView As Guid, _
    iCustomColumnIndex As UInteger, _
    <OutAttribute> ByRef pfReadOnly As Integer _
) As Integer
int IsCustomColumnReadOnly(
    ref Guid guidView,
    uint iCustomColumnIndex,
    out int pfReadOnly
)
int IsCustomColumnReadOnly(
    [InAttribute] Guid% guidView, 
    [InAttribute] unsigned int iCustomColumnIndex, 
    [OutAttribute] int% pfReadOnly
)
abstract IsCustomColumnReadOnly : 
        guidView:Guid byref * 
        iCustomColumnIndex:uint32 * 
        pfReadOnly:int byref -> int
function IsCustomColumnReadOnly(
    guidView : Guid, 
    iCustomColumnIndex : uint, 
    pfReadOnly : int
) : int

Parameters

  • guidView
    Type: Guid%

    [in] GUID of the task list view.

  • iCustomColumnIndex
    Type: UInt32

    [in] Index of the customized field.

  • pfReadOnly
    Type: Int32%

    [out] true if the customized field has read-only status.

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 IVsTaskItem::IsCustomColumnReadOnly(
   [in] ref Guid guidView,
   [In] uint iCustomColumnIndex,
   [out] int *pfReadOnly
);

.NET Framework Security

See Also

Reference

IVsTaskItem2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace