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
- markup
Type: System.String
A correctly formed XML document.
- additionalReferences
Type: System.Collections.Generic.IEnumerable<AssemblyName>
Assembly names to use when parsing markup.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Services Namespace