ArcObjects Library Reference (3DAnalyst)  

ICamera.IsUsable Property

Indicates if the camera has valid parameters.

[Visual Basic .NET]
Public ReadOnly Property IsUsable As Boolean
[C#]
public bool IsUsable {get;}
[C++]
HRESULT get_IsUsable(
  VARIANT_BOOL* isValid
);
[C++]

Parameters

isValid [out, retval]   isValid is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Remarks

Before doing something with a camera it is advisable to call IsUsable first. It's possible the camera has some properties which are undefined or is unable to perform certain requests. This happens when a camera is associated with an empty scene, the target/observer or other parameters has invalid values (not a number, for instance), or when the target and the observer share the same location etc.

See Also

ICamera Interface