SchemaExtensionsHasAttribute Method (SchemaType, String) |
Gets a value indicating if the schema type has the specified attribute in its definition
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static bool HasAttribute(
this SchemaType type,
string attribute
)
<ExtensionAttribute>
Public Shared Function HasAttribute (
type As SchemaType,
attribute As String
) As Boolean
public:
[ExtensionAttribute]
static bool HasAttribute(
SchemaType^ type,
String^ attribute
)
Parameters
- type
- Type: SchemaType
The type to evaluate - attribute
- Type: SystemString
The name of the attribute
Return Value
Type:
BooleanA value indicating if the attribute is present in the schema type
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SchemaType. 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