SqlMetaData.InferFromValue Method (Object, String)

 

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

Namespace:   Microsoft.SqlServer.Server
Assembly:  System.Data (in System.Data.dll)

public static SqlMetaData InferFromValue(
	object value,
	string name
)

Parameters

value
Type: System.Object

The object used from which the metadata is inferred.

name
Type: System.String

The name assigned to the returned SqlMetaData instance.

Return Value

Type: Microsoft.SqlServer.Server.SqlMetaData

The inferred metadata as a SqlMetaData instance.

Exception Condition
ArgumentNullException

The value is null.

.NET Framework
Available since 2.0
Return to top
Show: