Class ProtocolFormatAttribute
Sets a protocol format to open a link through the operating system.
Implements
Inherited Members
Namespace: TheXDS.MCART.Attributes
Assembly: MCART.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
[Serializable]
public sealed class ProtocolFormatAttribute : TextAttribute, IValueAttribute<string>
Constructors
| Edit this page View SourceProtocolFormatAttribute(string)
Sets a protocol format to open a link through the operating system.
Declaration
public ProtocolFormatAttribute(string format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | format | Mask to apply. |
Properties
| Edit this page View SourceFormat
Protocol call format.
Declaration
public string Format { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceOpen(string)
Opens a URL with this formatted protocol.
Declaration
public Process? Open(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | URL of the resource to open using the protocol defined by this attribute. |
Returns
| Type | Description |
|---|---|
| Process | An instance of the class Process that represents the
operating system process that was loaded when opening the
specified |