userData (property)
The UserData property holds connection specific user specified data.
Syntax
- (NSString*)userData:(int)connectionId; - (void)setUserData:(int)connectionId:(NSString*)newUserData;
- (NSData*)userDataB:(int)connectionId; - (void)setUserDataB:(int)connectionId:(NSData*)newUserData;
public func userData(connectionId: Int32) throws -> String
public func setUserData(connectionId: Int32, newUserData: String) throws -> Void
public func userDataB(connectionId: Int32) throws -> Data
public func setUserDataB(connectionId: Int32, newUserData: Data) throws -> Void
Default Value
""
Remarks
The UserData property holds connection specific user specified data.
User specified data may be set or retrieved at any point while the connection is valid. This provides a simple way to associate arbitrary data with a specific connection.
The ConnectionId parameter specifies the index of the item in the array. The size of the array is controlled by the ConnectionCount property.