This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > 3DAnalyst > ESRI.ArcGIS.Analyst3D > Interfaces > IC > ICamera Interface > ICamera.IsUsable Property (ArcObjects .NET 10.5 SDK) |
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
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.