SchemaAttribute.CreateSingleValuedAttribute Method (String, AttributeType, AttributeOperation)
Creates an SchemaAttribute object that represents a single valued attribute.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim attributeName As String
Dim dataType As AttributeType
Dim allowedAttributeOperation As AttributeOperation
Dim returnValue As SchemaAttribute
returnValue = SchemaAttribute.CreateSingleValuedAttribute(attributeName, dataType, allowedAttributeOperation)
Syntax
'Declaration
Public Shared Function CreateSingleValuedAttribute ( _
attributeName As String, _
dataType As AttributeType, _
allowedAttributeOperation As AttributeOperation _
) As SchemaAttribute
public static SchemaAttribute CreateSingleValuedAttribute (
string attributeName,
AttributeType dataType,
AttributeOperation allowedAttributeOperation
)
public:
static SchemaAttribute^ CreateSingleValuedAttribute (
String^ attributeName,
AttributeType dataType,
AttributeOperation allowedAttributeOperation
)
public static SchemaAttribute CreateSingleValuedAttribute (
String attributeName,
AttributeType dataType,
AttributeOperation allowedAttributeOperation
)
public static function CreateSingleValuedAttribute (
attributeName : String,
dataType : AttributeType,
allowedAttributeOperation : AttributeOperation
) : SchemaAttribute
Parameters
- attributeName
The name of the attribute.
- dataType
The data type of the attribute.
- allowedAttributeOperation
The operations allowed for the attribute.
Return Value
Returns SchemaAttribute.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
SchemaAttribute Class
SchemaAttribute Members
Microsoft.MetadirectoryServices Namespace