ZoneIdentifier Class
Represents the zone information stored in a Zone.Identifier alternate data stream.
public sealed class ZoneIdentifierRemarks
The values are the ones the stream records, not the zone Windows assigns to the file. Use MarkOfTheWeb.GetFileZone or MarkOfTheWeb.IsUntrusted to make a security decision.
Properties
| Name | Description |
|---|---|
| HostUrl | Gets the URL the file was downloaded from, or null when the stream does not record one. |
| ReferrerUrl | Gets the URL of the page that linked to the file, or null when the stream does not record one. |
| Zone | Gets the zone recorded by the ZoneId entry, or UrlZone.Invalid when there is no usable entry. |
HostUrl
ZoneIdentifier.csReferrerUrl
ZoneIdentifier.csGets the zone recorded by the ZoneId entry, or UrlZone.Invalid when there is no usable entry.
public UrlZone Zone { get; }Methods
| Name | Description |
|---|---|
| Parse(string) | Parses the content of a Zone.Identifier alternate data stream. |
Parse(string)
ZoneIdentifier.csParses the content of a Zone.Identifier alternate data stream.
public static ZoneIdentifier Parse(string content)Parameters
contentstring- The content of the stream, as returned by
MarkOfTheWeb.GetFileZoneContent.
Returns
ZoneIdentifier The zone information found in the [ZoneTransfer] section.
Remarks
Section and key names are case-insensitive, and whitespace around keys and values is ignored. An entry that is repeated with different values is ambiguous, so it is reported as absent.