Share via


IXamlFileInformationContext.Update Method

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

Requests that this file context be updated to the current content of the file.

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

Syntax

'Declaration
Function Update ( _
    time As Long, _
    sourceVersion As Long, _
    prepareOptions As XamlPrepareOptions, _
    offset As Integer _
) As Long
'Usage
Dim instance As IXamlFileInformationContext 
Dim time As Long 
Dim sourceVersion As Long 
Dim prepareOptions As XamlPrepareOptions 
Dim offset As Integer 
Dim returnValue As Long 

returnValue = instance.Update(time, sourceVersion, _
    prepareOptions, offset)
long Update(
    long time,
    long sourceVersion,
    XamlPrepareOptions prepareOptions,
    int offset
)
long long Update(
    long long time, 
    long long sourceVersion, 
    XamlPrepareOptions prepareOptions, 
    int offset
)
function Update(
    time : long, 
    sourceVersion : long, 
    prepareOptions : XamlPrepareOptions, 
    offset : int
) : long

Parameters

  • time
    Type: System.Int64

    A time value that will be returned by the LastUpdated method. This value is not used internally.

  • offset
    Type: System.Int32

    An optional offset to use to help prepare for a call. Specifying -1 indicates that no offset is ready. Specifying a non-negative offset might cause more work to be done than necessary if the prepared call is not eventually made.

Return Value

Type: System.Int64
A value that represents the version of the source that any errors occurred in. This version is the last parsed version.

Remarks

The Update method must be called before any of the other methods will return a valid result.

.NET Framework Security

See Also

Reference

IXamlFileInformationContext Interface

IXamlFileInformationContext Members

Microsoft.Xaml Namespace

Other Resources

WPF Designer Extensibility