Compartilhar via


IVMHardDisk::Security property

The IVMSecurity object associated with the current hard disk image file.

This property is read-only.

Syntax

HRESULT get_Security(
  [out] IVMSecurity **security
);

VB
VMHardDisk.Security( _
  ByRef security _
)

Property value

Contains a VMSecurity instance that represents the security attributes of the current hard disk image file.

This property value is read-only.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The security parameter is NULL.
E_OUTOFMEMORY
Could not allocate memory for the security descriptor.
E_FILE_NOT_FOUND
The hard disk image file associated with this COM object was not found.
DISP_E_EXCEPTION
An unexpected error has occurred.

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

IVMHardDisk