Struct MxcUri
Content URI of the form mxc://server/mediaId.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Core
Assembly: Uniform.Matrix.Protocol.Core.dll
Syntax
public readonly record struct MxcUri : IEquatable<MxcUri>
Constructors
| Edit this page View SourceMxcUri(string, string)
Content URI of the form mxc://server/mediaId.
Declaration
public MxcUri(string ServerName, string MediaId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | ServerName | Server that stores the media. |
| string | MediaId | Opaque media ID. |
Properties
| Edit this page View SourceMediaId
Opaque media ID.
Declaration
public string MediaId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
ServerName
Server that stores the media.
Declaration
public string ServerName { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceParse(string)
Parse value; throw FormatException when invalid.
Declaration
public static MxcUri Parse(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value |
Returns
| Type | Description |
|---|---|
| MxcUri |
ToString()
Format as mxc://server/mediaId.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceTryParse(string?, out MxcUri)
Parse value; false when it is not of the form mxc://server/mediaId.
Declaration
public static bool TryParse(string? value, out MxcUri uri)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | |
| MxcUri | uri |
Returns
| Type | Description |
|---|---|
| bool |