다음을 통해 공유


IVsPersistDocData2.IsDocDataReadOnly Method

Determines whether the document data is read-only.

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

Syntax

‘선언
Function IsDocDataReadOnly ( _
    <OutAttribute> ByRef pfReadOnly As Integer _
) As Integer
‘사용 방법
Dim instance As IVsPersistDocData2
Dim pfReadOnly As Integer
Dim returnValue As Integer

returnValue = instance.IsDocDataReadOnly(pfReadOnly)
int IsDocDataReadOnly(
    out int pfReadOnly
)
int IsDocDataReadOnly(
    [OutAttribute] int% pfReadOnly
)
abstract IsDocDataReadOnly : 
        pfReadOnly:int byref -> int 
function IsDocDataReadOnly(
    pfReadOnly : int
) : int

Parameters

  • pfReadOnly
    Type: System.Int32%
    [out] Pointer to a flag indicating read-only.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistDocData2::IsDocDataReadOnly(
   [out] BOOL *pfReadOnly
);

.NET Framework Security

See Also

Reference

IVsPersistDocData2 Interface

IVsPersistDocData2 Members

Microsoft.VisualStudio.Shell.Interop Namespace