Zero Install .NET API 2.20.0
ZeroInstall.Model.Category Class Reference

An application category (e.g. Game or Office). Used for organizing application menus. More...

Inheritance diagram for ZeroInstall.Model.Category:
ZeroInstall.Model.FeedElement NanoByte.Common.ICloneable< Category > ZeroInstall.Model.XmlUnknown

Public Member Functions

override string ToString ()
 Returns Name directly. Safe for parsing!
 
bool Equals (Category? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
Category Clone ()
 Creates a plain copy of this category. More...
 
- Public Member Functions inherited from ZeroInstall.Model.FeedElement
override int GetHashCode ()
 
- Public Member Functions inherited from ZeroInstall.Model.XmlUnknown
string ToShortXml ()
 Returns a shortened XML representation (with attributes but without child elements). More...
 
override int GetHashCode ()
 
- Public Member Functions inherited from NanoByte.Common.ICloneable< Category >
Category Clone ()
 

Static Public Member Functions

static implicit operator Category (string value)
 Convenience cast for turning strings into Categorys.
 

Static Public Attributes

static readonly string[] WellKnownNames = {"AudioVideo", "Audio", "Video", "Development", "Education", "Game", "Graphics", "Network", "Office", "Science", "Settings", "System", "Utility"}
 Well-known values for Name if TypeNamespace is empty.
 

Properties

string? Name [getset]
 The category name as specified by the TypeNamespace.
 
string? TypeNamespace [getset]
 If no type is given, then the category is one of the 'Main' categories defined by the freedesktop.org menu specification (http://standards.freedesktop.org/menu-spec/latest/apa.html). Otherwise, it is a URI giving the namespace for the category.
 
- Properties inherited from ZeroInstall.Model.FeedElement
VersionRangeIfZeroInstallVersion [getset]
 Only process this element if the current Zero Install version matches the range.
 
string??? IfZeroInstallVersionString [getset]
 Used for XML serialization. More...
 

Additional Inherited Members

- Public Attributes inherited from ZeroInstall.Model.XmlUnknown
XmlAttribute?[] UnknownAttributes
 Contains any unknown additional XML attributes.
 
XmlElement?[] UnknownElements
 Contains any unknown additional XML elements.
 
- Protected Member Functions inherited from ZeroInstall.Model.FeedElement
bool Equals (FeedElement? other)
 
- Protected Member Functions inherited from ZeroInstall.Model.XmlUnknown
void EnsureAttribute (object? value, string attributeName)
 Ensures that a value deserialized from an XML attribute is set (not null). More...
 
void EnsureAttributeSafeID (string? value, string attributeName)
 Ensures that a value deserialized from an XML attribute is set (not null) and only contains alphanumeric characters, spaces ( ), dots (.), underscores (_), hyphens (-) and plus signs (+). More...
 
bool Equals (XmlUnknown? other)
 
- Static Protected Member Functions inherited from ZeroInstall.Model.FeedElement
static bool FilterMismatch (IRecipeStep step)
 Checks whether an element passes the specified IfZeroInstallVersion restriction, if any.
 
- Static Package Functions inherited from ZeroInstall.Model.FeedElement
static bool FilterMismatch< T > (T element)
 Checks whether an element passes the specified IfZeroInstallVersion restriction, if any. More...
 

Detailed Description

An application category (e.g. Game or Office). Used for organizing application menus.

Member Function Documentation

◆ Clone()

Category ZeroInstall.Model.Category.Clone ( )

Creates a plain copy of this category.

Returns
The cloned category.

The documentation for this class was generated from the following file: