IVsTaskItem2.IsCustomColumnReadOnly(Guid, UInt32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定自定义任务字段是否设置为只读状态。
public:
int IsCustomColumnReadOnly(Guid % guidView, System::UInt32 iCustomColumnIndex, [Runtime::InteropServices::Out] int % pfReadOnly);
public int IsCustomColumnReadOnly (ref Guid guidView, uint iCustomColumnIndex, out int pfReadOnly);
abstract member IsCustomColumnReadOnly : Guid * uint32 * int -> int
Public Function IsCustomColumnReadOnly (ByRef guidView As Guid, iCustomColumnIndex As UInteger, ByRef pfReadOnly As Integer) As Integer
参数
- guidView
- Guid
中任务列表视图的 GUID。
- iCustomColumnIndex
- UInt32
中自定义字段的索引。
- pfReadOnly
- Int32
[out] true 如果自定义字段具有只读状态,则为。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsTaskItem::IsCustomColumnReadOnly(
[in] ref Guid guidView,
[In] uint iCustomColumnIndex,
[out] int *pfReadOnly
);