VMware vCloud Suite SDK for .NET 6.0.0
vmware::vapi::std::errors::UnableToAllocateResource Class Reference

The UnableToAllocateResource error indicates that the method failed because it was unable to allocate or acquire a required resource. More...

Inherits vmware::vapi::std::errors::Error.

List of all members.

Public Member Functions

 UnableToAllocateResource (global::System.Collections.Generic.List< vmware.vapi.std.LocalizableMessage > messages, vmware.vapi.bindings.IStructure data)
 Creates a new instance of this type using the given arguments.
 UnableToAllocateResource ()
 Creates a default new instance.
override
vmware.vapi.bindings.type.StructType 
_GetType ()
override
vmware.vapi.data.StructValue 
_GetDataValue ()
override void _Validate ()
override bool _HasTypeNameOf< T > ()
override T _ConvertTo< T > ()
override bool Equals (object obj)
override int GetHashCode ()

Properties

override string Message [get]

Detailed Description

The UnableToAllocateResource error indicates that the method failed because it was unable to allocate or acquire a required resource.

Examples:

  • Trying to power on a virtual machine when there are not enough licenses to do so.
  • Trying to power on a virtual machine that would violate a resource usage policy.

Counterexamples:

  • Trying to power off a virtual machine that is in the process of being powered on. A ResourceBusy error would be used instead.
  • Trying to remove a VMFS datastore when the is a virtual machine registered on any host attached to the datastore. The ResourceInUse error would be used instead.
  • Trying to add a virtual switch if the physical network adapter being bridged is already in use. The ResourceInUse error would be used instead.
  • Attempt to invoke some method on a virtual machine when the virtual machine's configuration file is not accessible (for example due to a storage APD condition). The ResourceInaccessible error would be used instead.

Constructor & Destructor Documentation

vmware::vapi::std::errors::UnableToAllocateResource::UnableToAllocateResource ( global::System.Collections.Generic.List< vmware.vapi.std.LocalizableMessage messages,
vmware.vapi.bindings.IStructure  data 
) [inline]

Creates a new instance of this type using the given arguments.

vmware::vapi::std::errors::UnableToAllocateResource::UnableToAllocateResource ( ) [inline]

Creates a default new instance.


Member Function Documentation

override T vmware::vapi::std::errors::UnableToAllocateResource::_ConvertTo< T > ( ) [inline]

Reimplemented from vmware::vapi::std::errors::Error.

override vmware.vapi.data.StructValue vmware::vapi::std::errors::UnableToAllocateResource::_GetDataValue ( ) [inline]

Reimplemented from vmware::vapi::std::errors::Error.

override vmware.vapi.bindings.type.StructType vmware::vapi::std::errors::UnableToAllocateResource::_GetType ( ) [inline, virtual]

Reimplemented from vmware::vapi::std::errors::Error.

override bool vmware::vapi::std::errors::UnableToAllocateResource::_HasTypeNameOf< T > ( ) [inline]

Reimplemented from vmware::vapi::std::errors::Error.

override void vmware::vapi::std::errors::UnableToAllocateResource::_Validate ( ) [inline, virtual]

Reimplemented from vmware::vapi::std::errors::Error.

override bool vmware::vapi::std::errors::UnableToAllocateResource::Equals ( object  obj) [inline]

Reimplemented from vmware::vapi::std::errors::Error.

override int vmware::vapi::std::errors::UnableToAllocateResource::GetHashCode ( ) [inline]

Reimplemented from vmware::vapi::std::errors::Error.


Property Documentation

override string vmware::vapi::std::errors::UnableToAllocateResource::Message [get]

Reimplemented from vmware::vapi::std::errors::Error.


The documentation for this class was generated from the following file: