Class NullablePlatformStringHandle
public abstract class NullablePlatformStringHandle : SafeHandle, IDisposable
- Inheritance
-
NullablePlatformStringHandle
- Implements
- Derived
- Inherited Members
Constructors
NullablePlatformStringHandle(bool)
protected NullablePlatformStringHandle(bool ownsHandle)
Parameters
ownsHandle
bool
Properties
IsInvalid
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
public override bool IsInvalid { get; }
Property Value
Methods
ConvertToString()
Converts the data of this handle into a managed string. In case of a NULL pointer this returns null.
public string? ConvertToString()
Returns
- string
A string containing the handle data or null.
Exceptions
- GException
Thrown if the string could not be converted into utf8.