Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 是否存在包含所有链接rel属性值的类?_C#_Html_Asp.net - Fatal编程技术网

C# 是否存在包含所有链接rel属性值的类?

C# 是否存在包含所有链接rel属性值的类?,c#,html,asp.net,C#,Html,Asp.net,在任何一个主要的Microsoft web框架中,都有一个超链接(锚定HTML元素)上的rel属性的值列表。否。但是您可以使用以下内容: /// <summary> /// Contains most values for the rel attribute on an HTML anchor hyperlink elemement. /// </summary> public static class HyperlinkRelationships { /// &

在任何一个主要的Microsoft web框架中,都有一个超链接(锚定HTML元素)上的
rel
属性的值列表。

否。但是您可以使用以下内容:

/// <summary>
/// Contains most values for the rel attribute on an HTML anchor hyperlink elemement.
/// </summary>
public static class HyperlinkRelationships
{
    /// <summary>
    /// Designates substitute versions for the document in which the link occurs. When used together with the lang attribute, it implies a translated version of the document. When used together with the media attribute, it implies a version designed for a different medium (or media).
    /// </summary>
    public const string AlternateRelationship = "alternate";
    /// <summary>
    /// Refers to a document serving as an appendix in a collection of documents.
    /// </summary>
    public const string AppendixRelationship = "appendix";
    /// <summary>
    /// Refers to an external style sheet. See the section on external style sheets for details. This is used together with the link type "Alternate" for user-selectable alternate style sheets.
    /// </summary>
    public const string AuthorRelationship = "author";
    /// <summary>
    /// Refers to a bookmark. A bookmark is a link to a key entry point within an extended document. The title attribute may be used, for example, to label the bookmark. Note that several bookmarks may be defined in each document.
    /// </summary>
    public const string BookmarkRelationship = "bookmark";
    /// <summary>
    /// Refers to a document serving as a chapter in a collection of documents.
    /// </summary>
    public const string ChapterRelationship = "chapter";
    /// <summary>
    /// Refers to a copyright statement for the current document.
    /// </summary>
    public const string CopyrightRelationship = "copyright";
    /// <summary>
    /// Refers to a document serving as a table of contents. Some user agents also support the synonym ToC (from "Table of Contents").
    /// </summary>
    public const string ContentsRelationship = "contents";
    /// <summary>
    /// Refers to a document offering help (more information, links to other sources information, etc.)
    /// </summary>
    public const string HelpRelationship = "help";
    /// <summary>
    /// Links to copyright information for the document.
    /// </summary>
    public const string LicenseRelationship = "license";
    /// <summary>
    /// Refers to a document providing a glossary of terms that pertain to the current document.
    /// </summary>
    public const string GlossaryRelationship = "glossary";
    /// <summary>
    /// Refers to a document providing an index for the current document.
    /// </summary>
    public const string IndexRelationship = "index";
    /// <summary>
    /// Refers to the next document in a linear sequence of documents. User agents may choose to preload the "next" document, to reduce the perceived load time.
    /// </summary>        
    public const string NextRelationship = "next";
    /// <summary>
    /// Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
    /// </summary>
    public const string NoFollowRelationship = "nofollow";
    /// <summary>
    /// Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink.
    /// </summary>
    public const string NoReferrerRelationship = "noreferrer";
    /// <summary>
    /// Specifies that the target document should be cached.
    /// </summary>
    public const string PrefetchRelationship = "prefetch";
    /// <summary>
    /// Refers to the previous document in an ordered series of documents. Some user agents also support the synonym "Previous".
    /// </summary>
    public const string PrevRelationship = "prev";
    /// <summary>
    /// Links to a search tool for the document.
    /// </summary>
    public const string SearchRelationship = "search";
    /// <summary>
    /// Refers to a document serving as a section in a collection of documents.
    /// </summary>
    public const string SectionRelationship = "section";
    /// <summary>
    /// Refers to a document serving as a subsection in a collection of documents.
    /// </summary>
    public const string SubsectionRelationship = "subsection";
    /// <summary>
    /// Refers to the first document in a collection of documents. This link type tells search engines which document is considered by the author to be the starting point of the collection.
    /// </summary>
    public const string StartRelationship = "start";
    /// <summary>
    /// Refers to an external style sheet. See the section on external style sheets for details. This is used together with the link type "Alternate" for user-selectable alternate style sheets.
    /// </summary>
    public const string StylesheetRelationship = "stylesheet";
    /// <summary>
    /// A tag (keyword) for the current document.
    /// </summary>
    public const string TagRelationship = "tag";
}
//
///包含HTML锚定超链接元素上rel属性的大多数值。
/// 
公共静态类超链接关系
{
/// 
///指定链接所在文档的替代版本。与lang属性一起使用时,表示文档的翻译版本。与media属性一起使用时,表示为其他媒体设计的版本。
/// 
public const string AlternateRelationship=“alternate”;
/// 
///指在文件集合中用作附录的文件。
/// 
public const string appendix relationship=“appendix”;
/// 
///指外部样式表。有关详细信息,请参阅外部样式表部分。这与链接类型“Alternate”一起用于用户可选择的备用样式表。
/// 
public const string AuthorRelationship=“author”;
/// 
///指书签。书签是指向扩展文档中关键入口点的链接。例如,可以使用title属性来标记书签。请注意,每个文档中可能定义多个书签。
/// 
public const string bookmarkrationship=“bookmark”;
/// 
///指作为文档集合中的章节的文档。
/// 
public const string ChapterRelationship=“chapter”;
/// 
///指当前文档的版权声明。
/// 
public const string版权关系=“版权”;
/// 
///指用作目录的文档。某些用户代理还支持同义词ToC(来自“目录”)。
/// 
public const string contents relationship=“contents”;
/// 
///指提供帮助的文档(更多信息、指向其他来源信息的链接等)
/// 
public const string HelpRelationship=“help”;
/// 
///指向文档版权信息的链接。
/// 
public const string LicenseRelationship=“license”;
/// 
///指提供与当前文档相关的术语表的文档。
/// 
public const string GlossaryRelationship=“glossary”;
/// 
///指为当前文档提供索引的文档。
/// 
public const string IndexRelationship=“index”;
/// 
///指文档线性序列中的下一个文档。用户代理可以选择预加载“下一个”文档,以减少感知的加载时间。
///         
public const string NextRelationship=“next”;
/// 
///指向未授权文档的链接,如付费链接。(“nofollow”由谷歌使用,用于指定谷歌搜索蜘蛛不应跟随该链接)
/// 
public const string NoFollowRelationship=“nofollow”;
/// 
///指定如果用户遵循超链接,浏览器不应发送HTTP referer标头。
/// 
public const string noreferrrelationship=“noreferrer”;
/// 
///指定应缓存目标文档。
/// 
public const string PrefetchRelationship=“prefetch”;
/// 
///指有序文档系列中的上一个文档。某些用户代理还支持同义词“previous”。
/// 
public const string PrevRelationship=“prev”;
/// 
///指向文档搜索工具的链接。
/// 
public const string SearchRelationship=“search”;
/// 
///指用作文档集合中的节的文档。
/// 
public const string SectionRelationship=“section”;
/// 
///指在文件集合中用作子部分的文件。
/// 
public const string SubsectionRelationship=“subsection”;
/// 
///指文档集合中的第一个文档。此链接类型告诉搜索引擎作者认为哪个文档是集合的起点。
/// 
公共常量字符串StartRelationship=“开始”;
/// 
///指外部样式表。有关详细信息,请参阅外部样式表部分。这与链接类型“Alternate”一起用于用户可选择的备用样式表。
/// 
public const string StylesheetRelationship=“stylesheet”;
/// 
///当前文档的标记(关键字)。
/// 
public const string TagRelationship=“tag”;
}