InlineContent Element

System.Object

ContentType

InlineContent

 

Client Declaration

Represents the content data that is to be uploaded to, or retrieved from, a content-carrying object.

 

Element Structure

Elements

 

Base Element Inheritance

Attributes

Attributes Specific to .NET Clients

 

Code Example

// Read data stream from file containing the document content
InlineContent inlineContent = new InlineContent();
System.IO.Stream inputStream = System.IO.File.OpenRead("c:/test/demo.doc");
inlineContent.Binary = new byte[inputStream.Length];
inputStream.Read(inlineContent.Binary, 0, (int)inputStream.Length);
inputStream.Close(); // Create reference to Content pseudo-property
ContentData propContent = new ContentData();
propContent.Value = inlineContent;
propContent.propertyId = "Content";

 

XML Schema

xsd:complexType name="InlineContent">
<xsd:complexContent>
<xsd:extension base="wsi:ContentType">
<xsd:sequence>
<xsd:element name="Binary" type="xsd:base64Binary"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>