Dela via


SourceModifier.Commit Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Commits all the add, delete, move, and replace operations made by using this object.

Namespace:  Microsoft.Windows.Design.SourceUpdate
Assembly:  Microsoft.Windows.Design.Markup (in Microsoft.Windows.Design.Markup.dll)

Syntax

'Declaration
Public Function Commit As IEnumerable(Of SourceFragment)
'Usage
Dim instance As SourceModifier 
Dim returnValue As IEnumerable(Of SourceFragment)

returnValue = instance.Commit()
public IEnumerable<SourceFragment> Commit()
public:
IEnumerable<SourceFragment>^ Commit()
public function Commit() : IEnumerable<SourceFragment>

Return Value

Type: System.Collections.Generic.IEnumerable<SourceFragment>
The collection of source fragments marked as includeInCommitResult.

Exceptions

Exception Condition
InvalidOperationException

The Commit method has already been called.

Remarks

After calling the Commit method, the object should be considered in a disposed state. Calling any subsequent methods is not permitted. Commit returns the source fragments marked as includeInCommitResult. All source fragments are relative to the modified source document. Adjacent and overlapping source fragments are merged so that no two source fragments returned are adjacent nor overlap.

.NET Framework Security

See Also

Reference

SourceModifier Class

SourceModifier Members

Microsoft.Windows.Design.SourceUpdate Namespace

Other Resources

WPF Designer Extensibility