DataRuleEngine.GetRules<T> Method
Namespace: Microsoft.Data.Schema.StaticCodeAnalysis
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Shared Function GetRules(Of T As {DataRule, IExtension}) ( _
databaseSchemaProvider As DatabaseSchemaProvider, _
<OutAttribute> ByRef errors As IEnumerable(Of DataSchemaError) _
) As IEnumerable(Of T)
public static IEnumerable<T> GetRules<T>(
DatabaseSchemaProvider databaseSchemaProvider,
out IEnumerable<DataSchemaError> errors
)
where T : DataRule, IExtension
public:
generic<typename T>
where T : DataRule, IExtension
static IEnumerable<T>^ GetRules(
DatabaseSchemaProvider^ databaseSchemaProvider,
[OutAttribute] IEnumerable<DataSchemaError^>^% errors
)
static member GetRules :
databaseSchemaProvider:DatabaseSchemaProvider *
errors:IEnumerable<DataSchemaError> byref -> IEnumerable<'T> when 'T : DataRule and IExtension
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- databaseSchemaProvider
Type: Microsoft.Data.Schema.DatabaseSchemaProvider
- errors
Type: System.Collections.Generic.IEnumerable<DataSchemaError>%
Return Value
Type: System.Collections.Generic.IEnumerable<T>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.