Show / Hide Table of Contents

Class NetworkPayload

Inheritance
System.Object
NetworkPayload
Namespace: Content.Server.DeviceNetwork
Assembly: Content.Server.dll
Syntax
public sealed class NetworkPayload : Dictionary<string, object>

Methods

| Improve this Doc View Source

TryGetValue<T>(String, out T)

Tries to get a value from the payload and checks if that value is of type T.

Declaration
public bool TryGetValue<T>(string key, out T value)
Parameters
Type Name Description
System.String key
T value
Returns
Type Description
System.Boolean

Whether the value was present in the payload and of the required type

Type Parameters
Name Description
T

The type that should be casted to

  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾