Share via


ExternalMarkupService.Load Method

When overridden in a derived class, parses the specified markup text and returns a model item representing that text.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function Load ( _
    markup As String, _
    additionalReferences As IEnumerable(Of AssemblyName) _
) As ModelItem
public abstract ModelItem Load(
    string markup,
    IEnumerable<AssemblyName> additionalReferences
)
public:
virtual ModelItem^ Load(
    String^ markup, 
    IEnumerable<AssemblyName^>^ additionalReferences
) abstract
abstract Load : 
        markup:string * 
        additionalReferences:IEnumerable<AssemblyName> -> ModelItem 
public abstract function Load(
    markup : String, 
    additionalReferences : IEnumerable<AssemblyName>
) : ModelItem

Parameters

Return Value

Type: Microsoft.Windows.Design.Model.ModelItem
A model item representing the markup.

Exceptions

Exception Condition
ArgumentNullException

markup is nulla null reference (Nothing in Visual Basic).

Remarks

If additionalReferences are not specified, only those assemblies referenced in the current designer are available. If additionalReferences are provided, they should be examined first, followed by the assemblies referenced in the current designer. The Load method can use the assembly names provided by the Save method for additionalReferences.

.NET Framework Security

See Also

Reference

ExternalMarkupService Class

Microsoft.Windows.Design.Services Namespace

Other Resources

WPF Designer Extensibility Architecture

XAML Parser Architecture