Creates profile attribute for role.
Namespace: Novalys.VisualGuard.Security.MembershipAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2017.0.101.17 (2017.0.101.17)
Syntax
C# |
---|
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 ) |
Visual Basic |
---|
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: System..::..String
PropertyName for attribute
- dataType
- Type: Novalys.VisualGuard.Security.CommonProfileAttribute..::..VGCommonProfileDataType
Datattype for attribute
- displayName
- Type: System..::..String
DisplayName for attribute
- description
- Type: System..::..String
Description
- isVisible
- Type: System..::..Boolean
IsVisibile
- isReadOnly
- Type: System..::..Boolean
IsReadonly
- isRequired
- Type: System..::..Boolean
Is Required
- allowSearch
- Type: System..::..Boolean
Allow Search, Set true if you want to allow search roles by this attribute else false
- viewOrder
- Type: System..::..Int32
Viewing Order of the attribute
- groupName
- Type: System..::..String
GroupName to categorize attributes
- profileAttributeDefinition
- Type: Novalys.VisualGuard.Security.CommonProfileAttribute..::..VGIProfileAttributeDefinition
ProfileAttributeDefinition object
Return Value
Type: VGRoleProfileAttributeCreated profile attribute