WorkflowView.SaveViewState(Stream) 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.
Saves the view-state to a binary stream.
public:
void SaveViewState(System::IO::Stream ^ viewState);
public void SaveViewState (System.IO.Stream viewState);
member this.SaveViewState : System.IO.Stream -> unit
Public Sub SaveViewState (viewState As Stream)
Parameters
- viewState
- Stream
A BinaryReader used to store the view state.
Examples
The following example demonstrates saving the view state for a WorkflowView object by creating a FileStream object using the FileMode.Create
flag and passing it to the SaveViewState method. To load this view state at a later time, see LoadViewState.
public void SaveViewState()
{
using (FileStream fs = new FileStream(@"viewstate.bin", FileMode.Create))
{
this.workflowView.SaveViewState(fs);
}
}
Public Sub SaveViewState()
Using fs As New FileStream("viewstate.bin", FileMode.Create)
Me.workflowView.SaveViewState(fs)
End Using
End Sub
Remarks
View state is the accumulation of the values of the properties and child controls of a view. Property values are persisted to the stream after saving and can be restored using the LoadViewState method.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기