This topic has not yet been rated - Rate this topic

IsOrInheritsFrom Method

WCF Data Services 5.0

Determines whether a type is equivalent to or derived from another type.

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
public static bool IsOrInheritsFrom(
	this IEdmType thisType,
	IEdmType otherType
)

Parameters

thisType
Type: Microsoft.Data.Edm..::..IEdmType
The type to be tested for equivalence to or derivation from the other type.
otherType
Type: Microsoft.Data.Edm..::..IEdmType
The type that is the other type.

Return Value

Type: System..::..Boolean
true if and only if the thisType parameter is equivalent to or inherits from otherType parameter; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmType. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.