SqlMetaData.InferFromValue(Object, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Infers the metadata from the specified object and returns it as a SqlMetaData instance.
public:
static Microsoft::SqlServer::Server::SqlMetaData ^ InferFromValue(System::Object ^ value, System::String ^ name);
public static Microsoft.SqlServer.Server.SqlMetaData InferFromValue (object value, string name);
static member InferFromValue : obj * string -> Microsoft.SqlServer.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
.