Task.IVsTaskItem.IsReadOnly Method
Determines whether or not the specified task field is read-only.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
‘선언
Private Function IsReadOnly ( _
field As VSTASKFIELD, _
<OutAttribute> ByRef fReadOnly As Integer _
) As Integer Implements IVsTaskItem.IsReadOnly
‘사용 방법
Dim instance As Task
Dim field As VSTASKFIELD
Dim fReadOnly As Integer
Dim returnValue As Integer
returnValue = CType(instance, IVsTaskItem).IsReadOnly(field, _
fReadOnly)
int IVsTaskItem.IsReadOnly(
VSTASKFIELD field,
out int fReadOnly
)
private:
virtual int IsReadOnly(
VSTASKFIELD field,
[OutAttribute] int% fReadOnly
) sealed = IVsTaskItem::IsReadOnly
private abstract IsReadOnly :
field:VSTASKFIELD *
fReadOnly:int byref -> int
private override IsReadOnly :
field:VSTASKFIELD *
fReadOnly:int byref -> int
JScript does not support explicit interface implementations.
Parameters
- field
Type: Microsoft.VisualStudio.Shell.Interop.VSTASKFIELD
The VSTASKFIELD.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.