Table of Contents

Class FileType

Namespace
ZeroInstall.Model.Capabilities
Assembly
ZeroInstall.Model.dll

An application's ability to open a certain file type.

public sealed class FileType : VerbCapability, ICloneable<Capability>, IEquatable<Capability>, IEquatable<DefaultCapability>, IIconContainer, IDescriptionContainer, IEquatable<IconCapability>, IEquatable<VerbCapability>, IEquatable<FileType>
Inheritance
object
FileType
Implements
Inherited Members

Constructors

FileType()

public FileType()

Properties

ConflictIDs

Identifiers from a namespace global to all Capabilitys. Collisions in this namespace indicate that the concerned Capabilitys are in conflict cannot be registered on a single system at the same time.

[Browsable(false)]
public override IEnumerable<string> ConflictIDs { get; }

Property Value

IEnumerable<string>

Remarks

These identifiers are not guaranteed to stay the same between versions. They should not be stored in files but instead always generated on demand.

Extensions

A list of all file extensions associated with this file type.

[Browsable(false)]
public List<FileTypeExtension> Extensions { get; }

Property Value

List<FileTypeExtension>

Methods

Clone()

Creates a deep copy of this instance.

public override Capability Clone()

Returns

Capability

CloneFileType()

Creates a deep copy of this FileType instance.

public FileType CloneFileType()

Returns

FileType

The new copy of the FileType.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Normalize()

Converts legacy elements, sets default values, etc..

public override void Normalize()

Exceptions

InvalidDataException

A required property is not set or invalid.

ToString()

Returns the capability in the form "ID". Not safe for parsing!

public override string ToString()

Returns

string

Operators

operator ==(FileType?, FileType?)

Indicates whether the object on the left is equal to the object on the right.

public static bool operator ==(FileType? left, FileType? right)

Parameters

left FileType

The left object

right FileType

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(FileType?, FileType?)

Indicates whether the object on the left is not equal to the object on the right.

public static bool operator !=(FileType? left, FileType? right)

Parameters

left FileType

The left object

right FileType

The right object

Returns

bool

true if the objects are not equal; otherwise, false.