Loads the value for the part from the specified source.
Public MustOverride Sub LoadFrom( _
ByVal source As Object _
)
[C#]
public abstract void LoadFrom(
object source
);
[C++]
public: virtual void LoadFrom(
Object* source
) = 0;
[JScript]
public abstract function LoadFrom(
source : Object
);
Parameters
- source
- StreamFactory (mechanism where you can provide multiple access to a sequential forward-only stream data), Stream, XmlDocument, XmlElement or a native type.
Exceptions
| Exception Type | Condition |
| InvalidCastException | If the property being updated is not ContentType. |
| ArgumentNullException | Setting the property value to a null. |
| Serialization exceptions | Thrown by System.Xml and custom formatters. |
| NotSupportedException | If the object is not supported. |
Remarks
This method is similar to RetreiveAs method to convert to the underlying type.
If the parameter is an XmlDocument or an XmlElement, the content of the part is set to the OuterXml for the supplied parameter. If the parameter is an XmlNodeList, it must have exactly one item and the item must be either an XmlDocument or an XmlElement. The parameter can also be a Stream or XmlReader implementing the ICloneable interface. In addition, a stream must support "seeking" to the beginning of the stream. The parameter can also be IStreamFactory or an IXmlReaderFactory.
For other parameter types, if the part is based on a schema, the supplied object is assumed to be a deserialized XML instance that complies with the schema. If the part is modeled on a .NET class, the parameter is assumed to be convertible to the .NET class.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code.
See Also
XLANGPart Class | XLANGPart Members | Microsoft.XLANGs.BaseTypes Namespace
To download updated BizTalk Server 2004 Help from www.microsoft.com, go to
http://go.microsoft.com/fwlink/?linkid=20616.
Copyright © 2004 Microsoft Corporation.
All rights reserved.