Control.ControlAccessibleObject.GetHelpTopic(String) 方法

定義

取得說明主題的識別項,以及與這個可存取物件相關之通往說明檔的路徑。Gets an identifier for a Help topic and the path to the Help file associated with this accessible object.

public:
 override int GetHelpTopic([Runtime::InteropServices::Out] System::String ^ % fileName);
public override int GetHelpTopic (out string fileName);
override this.GetHelpTopic : string -> int
Public Overrides Function GetHelpTopic (ByRef fileName As String) As Integer

參數

fileName
String

當這個方法傳回時,會包含一個字串,此字串表示與這個可存取物件相關的說明檔之路徑。When this method returns, contains a string that represents the path to the Help file associated with this accessible object. 這個參數會以未初始化的狀態傳遞。This parameter is passed uninitialized.

傳回

說明主題的識別項,如果沒有說明主題,則為 -1。An identifier for a Help topic, or -1 if there is no Help topic. 傳回時,fileName 屬性將會包含與這個可存取物件相關的說明檔之路徑;如果沒有指定任何 null 介面,則會傳回 IAccessibleOn return, the fileName parameter will contain the path to the Help file associated with this accessible object, or null if there is no IAccessible interface specified.

備註

將識別碼傳遞至fileName參數所指定的 WinHelp 檔案,以識別所需的說明主題。Pass the identifier to the WinHelp file specified by the fileName parameter to identify the desired Help topic.

適用於