IVMAccessRights::Name property
The Name property retrieves the account name of the user or group.
This property is read/write.
Syntax
HRESULT put_Name(
[in] BSTR name
);
HRESULT get_Name(
[out] BSTR *name
);
VB |
---|
|
Property value
The account name of the user or group. This may be a SID string if the name cannot be resolved.
This property value is read/write.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
The name parameter is NULL. |
|
The name parameter is not valid or is an empty string. |
|
An unknown error has occurred. Other HRESULT error values may be returned as well. |
Examples
The following example prints the account Name 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
Next
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|