共用方式為


_Application2.RegisterSolution 方法

此成員為 COM 介面的成員,已經由較新的版本所取代。此介面的較新版本可以實作介面舊版的所有成員以及其他新成員。如需以新版介面實作之成員 (包括用法、備註及範例) 的詳細資訊,請參閱 _Application3.RegisterSolution

**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)

語法

'宣告
<DispIdAttribute(12)> _
Sub RegisterSolution ( _
    <InAttribute> bstrSolutionURL As String, _
    <InAttribute> <OptionalAttribute> Optional bstrBehavior As String = "overwrite" _
)
'用途
Dim instance As _Application2
Dim bstrSolutionURL As String
Dim bstrBehavior As String

instance.RegisterSolution(bstrSolutionURL, bstrBehavior)
[DispIdAttribute(12)] 
void RegisterSolution (
    [InAttribute] string bstrSolutionURL,
    [OptionalAttribute] [InAttribute] string bstrBehavior
)

參數

  • bstrSolutionURL
  • bstrBehavior

請參閱

參考

_Application2 介面
_Application2 成員
Microsoft.Office.Interop.InfoPath 命名空間