Click or drag to resize
BasicMessageMetadataUtilityTryGetMetadataT Method

[This is preliminary documentation and is subject to change.]

WARNING: THIS METHODS RETURN VALUE IS UNRELIABLE. This method will return true even if the type of T can't get parsed from message.FormaterMetaData's json if the string is a valid json At the same time T output in this case will become a new instance of the type T with default values set(new T() instead of default(T))

Namespace: Netadmin.Management.Messaging.Implementation
Assembly: Netadmin.Management (in Netadmin.Management.dll) Version: release/9.0@131b654fe7332b0776120c2b44d96c6cac5ac9a2
Syntax
public static bool TryGetMetadata<T>(
	this IBasicMessage message,
	out T data
)
where T : class

Parameters

message
Type: Netadmin.Management.Messaging.MessageTypesIBasicMessage

[Missing <param name="message"/> documentation for "M:Netadmin.Management.Messaging.Implementation.BasicMessageMetadataUtility.TryGetMetadata``1(Netadmin.Management.Messaging.MessageTypes.IBasicMessage,``0@)"]

data
Type: T

[Missing <param name="data"/> documentation for "M:Netadmin.Management.Messaging.Implementation.BasicMessageMetadataUtility.TryGetMetadata``1(Netadmin.Management.Messaging.MessageTypes.IBasicMessage,``0@)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Netadmin.Management.Messaging.Implementation.BasicMessageMetadataUtility.TryGetMetadata``1(Netadmin.Management.Messaging.MessageTypes.IBasicMessage,``0@)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Netadmin.Management.Messaging.Implementation.BasicMessageMetadataUtility.TryGetMetadata``1(Netadmin.Management.Messaging.MessageTypes.IBasicMessage,``0@)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IBasicMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also