Partilhar via


SPMobileMessage.CreateContentPart Method

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.String

    The MIME type of the content, such as “text/plain”.

  • extension
    Type: System.String

    The file extension of the content, such as “txt”, “jpg”, or “mid”.

  • contentStream
    Type: System.IO.Stream

    The stream object that contains the content.

Return Value

Type: Microsoft.SharePoint.MobileMessage.SPMobileMessageContentPart
An object that represents a content part of a message.

See Also

Reference

SPMobileMessage Class

SPMobileMessage Members

Microsoft.SharePoint.MobileMessage Namespace