Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Determines if a property should be made read only.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function IsPropertyReadOnly ( _
dispid As Integer, _
<OutAttribute> ByRef fReadOnly As Integer _
) As Integer
int IsPropertyReadOnly(
int dispid,
out int fReadOnly
)
int IsPropertyReadOnly(
int dispid,
[OutAttribute] int% fReadOnly
)
abstract IsPropertyReadOnly :
dispid:int *
fReadOnly:int byref -> int
function IsPropertyReadOnly(
dispid : int,
fReadOnly : int
) : int
Parameters
dispid
Type: System.Int32[in] Specifies dispatch ID.
fReadOnly
Type: System.Int32%[out] 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 IVsPerPropertyBrowsing::IsPropertyReadOnly(
DISPID dispid,
[out, retval]BOOL* fReadOnly
);
Determines if a property should be made read only. This only applies to properties that are writeable, but returning true for *fReadOnly will cause them to be displayed by the Properties window as read only.
.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.