see
This element is used to create an inline link to another API topic or an external website within the
text in which it occurs. It can also be used to apply language-specific formatting to a limited set of keywords.
This inline element can be used within any other element. Any of the following formats may be used
based on the need.
<see cref="member" [qualifyHint="true"] [autoUpgrade="true"] />
or
<see cref="member" [autoUpgrade="true"]>inner text</see>
The code reference form uses a cref attribute to specify the
member name to which the link should be connected. The compiler will check that the target member name exists
and will generate a warning if it is not found. The member name does not have to be fully qualified as long as
the reference is within the containing class or if the appropriate using
(Imports in VB) statements are present.
If the self-closing form is used, the inner text of the link will be set to the member name
without a namespace or type qualifier. You can specify inner text on the element to use an alternate value for
the link text or to add a qualifying namespace or type to the member name. By adding the
qualifyHint attribute and setting it to true, you can indicate that the inner text
should be qualified. Type names are fully qualified with their namespace. Class members are qualified with
their class name.
When specifying type, field, property, event, and non-overloaded method names, the name alone
will suffice as the cref attribute value. However, when referencing overloaded methods,
you must supply parameter type information to help the compiler determine to which overload you are referring.
The parameter type names are enclosed in parentheses and can be specified using the types for the language being
used (i.e. int or string for C# or Integer
or String for VB). They can also be specified using the .NET Framework type names such
as Int32, System.Int32, etc. If an overload takes no
parameters, just specify an empty set of parentheses. If you want to link to the auto-generated member overloads
help topic, you can specify the autoUpgrade attribute. If set to false or omitted, the
link will take you directly to the referenced member. If set to true and the method has overloads, the link will
take you to the method overloads page instead. If the method has no overloads, it works the same as if set to
false and it takes you to the method page. This is equivalent to the same attribute on the MAML
codeEntityReference element. Another alternative is to use the fully qualified member
name with an "O:" prefix. See the Method Overload Examples
below for details.
To link to the root namespace container page, use the ID R:Project_[HtmlHelpName]
where "[HtmlHelpName]" is the value of your project's HTML Help Name property with
spaces replaced by underscores. Use the Entity References tool window to search for the ID if in doubt
about its value.
<see href="url" [target="_blank | _self | _parent | _top"]
[alt="alternate text"] />
or
<see href="url" [target="_blank | _self | _parent | _top"]
[alt="alternate text"]>inner text</see>
The external reference form is a customization implemented by Sandcastle. It uses an
href attribute to specify the URL of an external website or resource to which the link
should be connected. If the self-closing form is used, the inner text of the link will be set to the URL. You
can specify inner text on the element to use an alternate value for the link text.
The optional target attribute can be used to specify where the
content will be opened. If not specified, _blank is used to open the content in a new
browser window. The _self option can be used to replace the current topic with the
content of the target URL. The _parent and _top options can be
used to force the content to be displayed in the parent frame or full window if the current topic is hosted in
one of those manners.
The optional alt attribute can be used to specify alternate text to
display for the link's tooltip when the mouse hovers over it. If not specified, no alternate text is added for
the tooltip.
<see langword="null | Nothing | nullptr | static | shared | virtual |
Overridable | true | True | false | False | abstract | MustInherit |
sealed | NotInheritable | async | await | async/await | Async | Await |
Async/Await | let! | async/let!" />
The language keyword formatting form uses a langword attribute to
specify a language keyword that will receive special handling when the topic is viewed. When one of the noted
keywords is used, the keyword text displayed is based on the language selected in the language filter if the
presentation style has one. If a keyword other than one of those listed is specified, it is passed through with
no special formatting or handling.
Use this element to insert an inline link. Use the seealso
element to insert a link in the See Also section of the topic.
public event EventHandler SomethingHappened;
protected virtual void OnSomethingHappened()
{
SomethingHappened?.Invoke(this, EventArgs.Empty);
}
public void DoSomething()
{
}
public void DoSomething(int number)
{
}
public void DoSomething(string text)
{
}
public void DoSomething(int number, string text)
{
}
public void SeeElementExternalExample()
{
}
public static string SeeLangWordExamples()
{
return null;
}