AppDomainIsolatedTask.HelpKeywordPrefix 属性

定义

获取或设置前缀,该前缀用于通过字符串资源名称组成 help 关键字。Gets or sets the prefix used to compose help keywords from string resource names. 如果任务没有与消息关联的 help 关键字,则可以忽略此属性或将其设置为 null。If a task does not have help keywords associated with its messages, it can ignore this property or set it to null. 如果前缀设置为空字符串,则字符串资源名称将逐字用作 help 关键字。If the prefix is set to an empty string, then string resource names will be used verbatim as help keywords. 有关如何使用此前缀的示例,请参见 LogErrorWithCodeFromResources(String, Object[]) 方法。For an example of how this prefix is used, see the LogErrorWithCodeFromResources(String, Object[]) method.

protected:
 property System::String ^ HelpKeywordPrefix { System::String ^ get(); void set(System::String ^ value); };
protected string HelpKeywordPrefix { get; set; }
member this.HelpKeywordPrefix : string with get, set
Protected Property HelpKeywordPrefix As String

属性值

String

Help 关键字前缀字符串 (可以为 null) 。The help keyword prefix string (can be null).

注解

如果任务没有与消息关联的帮助关键字,它可以忽略此属性或将其设置为 null。If a task does not have help keywords associated with its messages, it can ignore this property or set it to null. 如果前缀设置为空字符串,则字符串资源名称将逐字用作帮助关键字。If the prefix is set to an empty string, then string resource names will be used verbatim as help keywords. 有关如何使用此前缀的示例,请参见 LogErrorWithCodeFromResources 方法。For an example of how this prefix is used, see the LogErrorWithCodeFromResources method.

适用于