Zero Install .NET API 2.20.0
ZeroInstall.Model.Capabilities.KnownProtocolPrefix Class Reference

Names a well-known protocol prefix. Used for protocols that are shared across many applications (e.g. HTTP, FTP) but not for application-specific protocols. More...

Inheritance diagram for ZeroInstall.Model.Capabilities.KnownProtocolPrefix:
ZeroInstall.Model.XmlUnknown NanoByte.Common.ICloneable< KnownProtocolPrefix >

Public Member Functions

void Normalize ()
 Converts legacy elements, sets default values, etc.. More...
 
override string ToString ()
 Returns the prefix in the form "Value". Not safe for parsing!
 
KnownProtocolPrefix Clone ()
 Creates a deep copy of this KnownProtocolPrefix instance. More...
 
bool Equals (KnownProtocolPrefix? other)
 
override bool Equals (object? obj)
 
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< KnownProtocolPrefix >
KnownProtocolPrefix Clone ()
 

Properties

string Value = default! [getset]
 The value of the prefix (e.g. "http").
 

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.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)
 

Detailed Description

Names a well-known protocol prefix. Used for protocols that are shared across many applications (e.g. HTTP, FTP) but not for application-specific protocols.

See also
UrlProtocol.KnownPrefixes

Member Function Documentation

◆ Clone()

KnownProtocolPrefix ZeroInstall.Model.Capabilities.KnownProtocolPrefix.Clone ( )

Creates a deep copy of this KnownProtocolPrefix instance.

Returns
The new copy of the KnownProtocolPrefix.

◆ Normalize()

void ZeroInstall.Model.Capabilities.KnownProtocolPrefix.Normalize ( )

Converts legacy elements, sets default values, etc..

Exceptions
InvalidDataExceptionA required property is not set or invalid.

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