runtimeClassName property

String runtimeClassName

Gets the fully qualified name of the current Windows Runtime object.

Implementation

String get runtimeClassName {
  final hstr = calloc<HSTRING>();

  try {
    final hr = getRuntimeClassName(hstr);
    if (SUCCEEDED(hr)) {
      return convertFromHString(hstr.value);
    } else {
      throw WindowsException(hr);
    }
  } finally {
    free(hstr);
  }
}