Class Extensions
- Namespace
- OFT.Attributes
- Assembly
- OFT.Attributes.dll
Reads the link and logo attributes of a class.
public static class Extensions
- Inheritance
-
objectExtensions
Methods
GetHelpLink(Type)
Gets the address of the help link of the class (HelpLinkAttribute).
Added in ATAS 8.0.15.
public static string GetHelpLink(this Type type)
Parameters
typeTypeThe class.
Returns
- string
The address, or null when the class has no help link.
GetHelpLinkAndModuleName(Type)
Gets the module help link of the class (ModuleHelpLinkAttribute).
Added in ATAS 8.0.15.
public static (string, string) GetHelpLinkAndModuleName(this Type type)
Parameters
typeTypeThe class.
Returns
- (string, string)
The address and the module name; both null when the class has none.
GetHelpLinkText(Type)
Gets the text of the help link of the class (HelpLinkAttribute).
Added in ATAS 8.0.15.
public static string GetHelpLinkText(this Type type)
Parameters
typeTypeThe class.
Returns
- string
The text, or null when the class has no help link or the link has no text.
GetLogoUri(Type)
Gets the address of the logo resource of the class (LogoAttribute).
Added in ATAS 8.0.15.
public static Uri GetLogoUri(this Type type)
Parameters
typeTypeThe class.
Returns
- Uri
The resource address, or null when the class has no logo.
GetReferralLink(Type)
Gets the referral link of the class (ReferralLinkAttribute).
Added in ATAS 8.0.15.
public static string GetReferralLink(this Type type)
Parameters
typeTypeThe class.
Returns
- string
The address, or null when the class has none.
GetRegisterLinks(Type)
Gets the RegisterLinkAttribute links of the class, inherited ones included, by their order.
Added in ATAS 8.0.15.
public static IReadOnlyList<RegisterLinkAttribute> GetRegisterLinks(this Type type)
Parameters
typeTypeThe class.
Returns
- IReadOnlyList<RegisterLinkAttribute>
The links; empty when there are none.