SchemaExtensionsHasObjectClass Method |
Gets a value indicating whether the schema collection has the specified object type in its definition
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static bool HasObjectClass(
this SchemaTypeKeyedCollection types,
string objectClass
)
<ExtensionAttribute>
Public Shared Function HasObjectClass (
types As SchemaTypeKeyedCollection,
objectClass As String
) As Boolean
public:
[ExtensionAttribute]
static bool HasObjectClass(
SchemaTypeKeyedCollection^ types,
String^ objectClass
)
Parameters
- types
- Type: SchemaTypeKeyedCollection
The schema collection to evaluate - objectClass
- Type: SystemString
The name of the object class
Return Value
Type:
BooleanA value indicating if the object class is present in the schema
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SchemaTypeKeyedCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also