Metodo EdmTypeSemantics.IsOrInheritsFrom
Determina se un tipo è equivalente a un altro tipo o se è da esso derivato.
Spazio dei nomi Microsoft.Data.Edm
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Sintassi
'Dichiarazione
<ExtensionAttribute> _
Public Shared Function IsOrInheritsFrom ( _
thisType As IEdmType, _
otherType As IEdmType _
) As Boolean
'Utilizzo
Dim thisType As IEdmType
Dim otherType As IEdmType
Dim returnValue As Boolean
returnValue = thisType.IsOrInheritsFrom(otherType)
public static bool IsOrInheritsFrom(
this IEdmType thisType,
IEdmType otherType
)
[ExtensionAttribute]
public:
static bool IsOrInheritsFrom(
IEdmType^ thisType,
IEdmType^ otherType
)
static member IsOrInheritsFrom :
thisType:IEdmType *
otherType:IEdmType -> bool
public static function IsOrInheritsFrom(
thisType : IEdmType,
otherType : IEdmType
) : boolean
Parametri
- thisType
Tipo: Microsoft.Data.Edm.IEdmType
Il tipo per cui verificare l'equivalenza o la derivazione dall'altro tipo.
- otherType
Tipo: Microsoft.Data.Edm.IEdmType
Il tipo che rappresenta l'altro tipo.
Valore restituito
Tipo: System.Boolean
true se e solo se il parametro thisType è equivalente al oppure eredita dal parametro otherType; in caso contrario, false.
Nota sull'utilizzo
In Visual Basic e C# questo metodo può essere chiamato come metodo di istanza su qualsiasi oggetto di tipo IEdmType. Quando si utilizza la sintassi del metodo di istanza per chiamare questo metodo, omettere il primo parametro. Per ulteriori informazioni, vedere https://msdn.microsoft.com/it-it/library/bb384936(v=vs.103) o https://msdn.microsoft.com/it-it/library/bb383977(v=vs.103).