IVMAccessRights::Flags property

The Flags property contains the inheritance flags of the access control entry.

This property is read/write.

Syntax

HRESULT put_Flags(
  [in]  byte flags
);

HRESULT get_Flags(
  [out] byte *flags
);

VB
VMAccessRights.Flags( _
  ByRef flags, _
  ByVal flags _
)

Property value

Retrieves the flags which determine how the access control entry is inherited by child containers and objects.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The flags parameter is NULL.
E_INVALIDARG
An invalid value was specified in the flags parameter.
DISP_E_EXCEPTION
An unknown error has occurred.

Examples

The following example prints the Flags 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 "Flags: " & arProperty.Flags
    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