SIP .NET Class Library
SIP .NET Class Library
SIP .NET
Independentsoft.Sip
SipClient Class
SipClient Methods
SendMessage Method
SendMessage Method (Dialog, String)
SendMessage Method (String, String, String)
SendMessage Method (ContactInfo, ContactInfo, String)
SendMessage Method (Dialog, String, String)
SendMessage Method (String, String, String, String)
SendMessage Method (ContactInfo, ContactInfo, String, String)

# SipClient SendMessage Method (ContactInfo, ContactInfo, String, String)

Sends instant message with the specified content type.

Namespace: Independentsoft.Sip
Assembly: Independentsoft.Sip (in Independentsoft.Sip.dll) Version: 1.0.700.17927
Syntax
C#
VB
Copy

    public RequestResponse SendMessage(
    	ContactInfo from,
    	ContactInfo to,
    	string message,
    	string contentType
    )

    Public Function SendMessage (
    	from As ContactInfo,
    	to As ContactInfo,
    	message As String,
    	contentType As String
    ) As RequestResponse

#### Parameters

from
  Type: Independentsoft.Sip
  ContactInfo
  A ContactInfo contains address and display name of the sender of the message.
to
  Type: Independentsoft.Sip
  ContactInfo
  A ContactInfo contains address and name of the recipient.
message
  Type: System
  String
  A string contains message to send.
contentType
  Type: System
  String
  Content type of the body.

#### Return Value

Type: RequestResponse
A RequestResponse containing sent Request and received appropriate Response.
See Also

#### Reference

SipClient Class
SendMessage Overload
Independentsoft.Sip Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de