JavaPeerableExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods on IJavaPeerable.
public static class JavaPeerableExtensions
type JavaPeerableExtensions = class
- Inheritance
-
JavaPeerableExtensions
Remarks
JavaAs and TryJavaCast return null or false for a null peer or an invalid peer reference. A successful conversion can return the original managed object or create a wrapper for the same Java reference.
Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |