Compartilhar via


Task.IVsTaskItem.IsReadOnly Method

Determines whether or not the specified task field is read-only.

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

Syntax

'Declaração
Private Function IsReadOnly ( _
    field As VSTASKFIELD, _
    <OutAttribute> ByRef fReadOnly As Integer _
) As Integer Implements IVsTaskItem.IsReadOnly
int IVsTaskItem.IsReadOnly(
    VSTASKFIELD field,
    out int fReadOnly
)

Parameters

  • fReadOnly
    Type: System.Int32%
    [out] Returns true if the field is read-only, otherwise false.

Return Value

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

Implements

IVsTaskItem.IsReadOnly(VSTASKFIELD, Int32%)

.NET Framework Security

See Also

Reference

Task Class

Microsoft.VisualStudio.Shell Namespace