Class FileVersionHeaderParser

Namespace: System.Net.Http.Headers

Represents a parser for the File-Version HTTP header. This header is used to convey file version information.

Constructors

This class has no public constructors.

Methods

Parse(string input)

Parses a string representing a File-Version header and returns an instance of FileVersionHeaderValue.

Parameters:

Returns: An instance of FileVersionHeaderValue if parsing is successful.

public static FileVersionHeaderValue Parse(string input)

TryParse(string input, out FileVersionHeaderValue& value)

Tries to parse a string representing a File-Version header and returns a boolean indicating success.

Parameters:

Returns: true if the string was parsed successfully; otherwise, false.

public static bool TryParse(string input, out FileVersionHeaderValue value)

Remarks

The File-Version header is typically used in HTTP responses to provide information about the version of the file being served. This parser is specifically designed to handle the format and nuances of this header according to HTTP specifications.

This class is a static utility class and cannot be instantiated. All methods are static and can be called directly on the class.

Related Types