Table of Contents

Class Value

Namespace
Secret
Assembly
Secret-1.dll
public sealed class Value : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Value>, IDisposable
Inheritance
Value
Implements
Inherited Members

Constructors

Value(ValueOwnedHandle)

public Value(ValueOwnedHandle handle)

Parameters

handle ValueOwnedHandle

Properties

Handle

public ValueOwnedHandle Handle { get; }

Property Value

ValueOwnedHandle

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Equals(Value?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Value? other)

Parameters

other Value

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetContentType()

public string GetContentType()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetText()

public string? GetText()

Returns

string

New(string, nint, string)

public static Value New(string secret, nint length, string contentType)

Parameters

secret string
length nint
contentType string

Returns

Value

Ref()

public Value Ref()

Returns

Value

Unref()

public void Unref()

UnrefToPassword(ref nuint)

[Version("0.19.0")]
public string UnrefToPassword(ref nuint length)

Parameters

length nuint

Returns

string