Udostępnij za pośrednictwem


ConnectionMessage Structure

.NET Framework 4

A message sent to one or more connections.

Namespace:  Microsoft.AspNet.SignalR
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public Structure ConnectionMessage
'Usage
Dim instance As ConnectionMessage
public struct ConnectionMessage
public value class ConnectionMessage
[<SealedAttribute>]
type ConnectionMessage =  struct end
JScript suports the use of structures, but not the declaration of new ones.

The ConnectionMessage type exposes the following members.

Constructors

  Name Description
Public method ConnectionMessage(String, Object) Initializes a new instance of the ConnectionMessage class.
Public method ConnectionMessage(String, Object, IList<String>) Initializes a new instance of the ConnectionMessage class.

Top

Properties

  Name Description
Public property ExcludedSignals Represents a list of signals that should be used to filter what connections receive this message.
Public property Signal The signal to this message should be sent to. Connections subscribed to this signal will receive the message payload.
Public property Value The payload of the message.

Top

Methods

  Name Description
Public method Equals (Inherited from ValueType.)
Public method GetHashCode (Inherited from ValueType.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from ValueType.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AspNet.SignalR Namespace