# Managed Object - View(vim.view.View)

Property of
  ViewManager
Parameter to
  CreateListViewFromView, ResetListViewFromView
Extended by
  ManagedObjectView
Since
  VI API 2.5

## Managed Object Description

View is the base class for session-specific view objects. A view is a mechanism that supports selection of objects on the server and subsequently, access to those objects. To create a view, use the ViewManager methods. A view exists until you terminate it by calling the DestroyView method, or until the end of the session. Access to a view is limited to the session in which it is created.

There are three types of views:

- ContainerView
- ListView
- InventoryView

A view maintains a view list that contains managed object references. You can use a view with the PropertyCollector to retrieve data and obtain notification of changes to the virtual environment. For information about using views with the PropertyCollector, see the description of ViewManager.

Properties

Name | Type | Description
--- | --- | ---
None

Methods

Methods defined in this Managed Object
DestroyView

# DestroyView(destroy)

Destroy this view.

Required Privileges
  System.View

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the View used to make the method call.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="DestroyView" type="vsan:DestroyViewRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="DestroyViewResponse"> <complexType/> </element>