Share via


SqlMetaData.InferFromValue(Object, String) Method

Definition

Infers the metadata from the specified object and returns it as a SqlMetaData instance.

public:
 static Microsoft::Data::SqlClient::Server::SqlMetaData ^ InferFromValue(System::Object ^ value, System::String ^ name);
public static Microsoft.Data.SqlClient.Server.SqlMetaData InferFromValue (object value, string name);
static member InferFromValue : obj * string -> Microsoft.Data.SqlClient.Server.SqlMetaData
Public Shared Function InferFromValue (value As Object, name As String) As SqlMetaData

Parameters

value
Object

The object used from which the metadata is inferred.

name
String

The name assigned to the returned SqlMetaData instance.

Returns

The inferred metadata as a SqlMetaData instance.

Exceptions

The value is null.

Applies to