IVMAccessRights::WriteAccess property
The WriteAccess property determines whether this entry controls write access.
This property is read/write.
Syntax
HRESULT put_WriteAccess(
[in] VARIANT_BOOL writeAccess
);
HRESULT get_WriteAccess(
[out] VARIANT_BOOL *writeAccess
);
VB |
---|
|
Property value
Contains vbTrue if the entry controls the ability to write to the protected object.
This property value is read/write.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
writeAccess was NULL. |
Examples
The following example prints the WriteAccess property of the access control entries from the security object protecting access to the COM interfaces and global settings.
Dim vsApp
Dim vsSecurity
Dim vsAccessRights
Dim arProperty
Set vsApp = WScript.CreateObject("VirtualServer.Application")
Set vsSecurity = vsApp.Security
Set vsAccessRights = vsSecurity.AccessRights
For Each arProperty In vsAccessRights
Wscript.Echo "Name: " & arProperty.Name
Wscript.Echo "Write access: " & arProperty.WriteAccess
Wscript.Echo
Next
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|