|
BroValueExtensionsConvertToType Method |
Attempts to get a new
BroValue based on the provided
value converted to the specified
type.
Namespace: BroccoliSharpAssembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax public static BroValue ConvertToType(
this BroValue value,
BroType type
)
<ExtensionAttribute>
Public Shared Function ConvertToType (
value As BroValue,
type As BroType
) As BroValue
static member ConvertToType :
value : BroValue *
type : BroType -> BroValue
/** @attribute ExtensionAttribute */
public static BroValue ConvertToType(
BroValue value,
BroType type
)
BroccoliSharp.BroValueExtensions.ConvertToType = function(value, type);
Parameters
- value
- Type: BroccoliSharpBroValue
BroValue to convert. - type
- Type: BroccoliSharpBroType
BroType to convert to.
Return Value
Type:
BroValueBroValue converted to
type if successful; otherwise,
null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
BroValue. 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).
Exceptions See Also