VGRolesInstanceCreateProfileAttribute Method (String, VGCommonProfileDataType, String, String, Boolean, Boolean, Boolean, Boolean, Int32, String, VGIProfileAttributeDefinition)
|
Creates profile attribute for role.
Namespace:
Novalys.VisualGuard.Security.Membership
Assembly:
Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax public VGRoleProfileAttribute CreateProfileAttribute(
string propertyName,
VGCommonProfileDataType dataType,
string displayName,
string description,
bool isVisible,
bool isReadOnly,
bool isRequired,
bool allowSearch,
int viewOrder,
string groupName,
VGIProfileAttributeDefinition profileAttributeDefinition
)
Public Function CreateProfileAttribute (
propertyName As String,
dataType As VGCommonProfileDataType,
displayName As String,
description As String,
isVisible As Boolean,
isReadOnly As Boolean,
isRequired As Boolean,
allowSearch As Boolean,
viewOrder As Integer,
groupName As String,
profileAttributeDefinition As VGIProfileAttributeDefinition
) As VGRoleProfileAttribute
Parameters
- propertyName
- Type: SystemString
PropertyName for attribute - dataType
- Type: Novalys.VisualGuard.Security.CommonProfileAttributeVGCommonProfileDataType
Datattype for attribute - displayName
- Type: SystemString
DisplayName for attribute - description
- Type: SystemString
Description - isVisible
- Type: SystemBoolean
IsVisibile - isReadOnly
- Type: SystemBoolean
IsReadonly - isRequired
- Type: SystemBoolean
Is Required - allowSearch
- Type: SystemBoolean
Allow Search, Set true if you want to allow search roles by this attribute else false - viewOrder
- Type: SystemInt32
Viewing Order of the attribute - groupName
- Type: SystemString
GroupName to categorize attributes - profileAttributeDefinition
- Type: Novalys.VisualGuard.Security.CommonProfileAttributeVGIProfileAttributeDefinition
ProfileAttributeDefinition object
Return Value
Type:
VGRoleProfileAttributeCreated profile attribute
See Also