Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an object that represents part of the contents of the message.
Namespace: Microsoft.SharePoint.MobileMessage
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function CreateContentPart ( _
mimeType As String, _
extension As String, _
contentStream As Stream _
) As SPMobileMessageContentPart
'Usage
Dim instance As SPMobileMessage
Dim mimeType As String
Dim extension As String
Dim contentStream As Stream
Dim returnValue As SPMobileMessageContentPart
returnValue = instance.CreateContentPart(mimeType, _
extension, contentStream)
public SPMobileMessageContentPart CreateContentPart(
string mimeType,
string extension,
Stream contentStream
)
Parameters
mimeType
Type: System.StringThe MIME type of the content, such as “text/plain”.
extension
Type: System.StringThe file extension of the content, such as “txt”, “jpg”, or “mid”.
contentStream
Type: System.IO.StreamThe stream object that contains the content.
Return Value
Type: Microsoft.SharePoint.MobileMessage.SPMobileMessageContentPart
An object that represents a content part of a message.