This document is archived and information here might be outdated.  Recommended version.


ICamera.IsUsable Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > 3DAnalyst > ESRI.ArcGIS.Analyst3D > Interfaces > IC > ICamera Interface > ICamera.IsUsable Property
ArcGIS Developer Help

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(
  Boolean* isValid
);
[C++]
Parameters
isValid [out, retval]

isValid is a parameter of type 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