UI2.SetSaveAsDialogLocation(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the initial location at which the Save As dialog starts to browse when it is opened.
public:
void SetSaveAsDialogLocation(System::String ^ bstrLocation);
public void SetSaveAsDialogLocation (string bstrLocation);
abstract member SetSaveAsDialogLocation : string -> unit
Public Sub SetSaveAsDialogLocation (bstrLocation As String)
Parameters
- bstrLocation
- String
The location, expressed as a URL, at which the Save As dialog box starts browsing.
Examples
In the following example, the SetSaveAsDialogLocation method of the UIObject object is used to set the initial location for the "Save As" dialog:
thisXDocument.UI.<span class="label">SetSaveAsDialogLocation</span>(@"\\MyShare\\Forms");
Remarks
The location specified must be an absolute path and it should not include a file name. InfoPath handles invalid paths, however, and no error message is generated if an invalid path is specified for the bstrLocation
argument. The SetSaveAsDialogLocation method may be used in conjunction with the SetSaveAsDialogFileName(String) method.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기