Compartir a través de


IVMAccessRights::SpecialAccess property

The SpecialAccess property determines whether this entry controls permissions not mapped to generic read, write or execute access rights.

This property is read/write.

Syntax

HRESULT put_SpecialAccess(
  [in]  VARIANT_BOOL specialAccess
);

HRESULT get_SpecialAccess(
  [out] VARIANT_BOOL *specialAccess
);

VB
VMAccessRights.SpecialAccess( _
  ByRef specialAccess, _
  ByVal specialAccess _
)

Property value

Contains vbTrue if the entry controls the permissions of the protected object not mapped to generic read, write or execute access.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
specialAccess was NULL.

Examples

The following example prints the SpecialAccess 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 "Special access: " & arProperty.SpecialAccess
    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
VsComInterfaces.h

See also

IVMAccessRights