Type Property
Collapse the table of content
Expand the table of content

ResultTypeAttribute.Type Property

Gets the valid or expected type mapping for a function having various result types.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public Type Type { get; }

Property Value

Type: System.Type
The type of result (Type).

This attribute applies to functions returning various result types. It is used to declare the possible result types returned from the function. For inheritance types, only the root type of the inheritance hierarchy needs to be specified.

	public IMultipleResults VariableResultShapes([Parameter(DbType="Int")] System.Nullable<int> shape)
		IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), shape);
		return ((IMultipleResults)(result.ReturnValue));

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

© 2016 Microsoft