Click or drag to resize

VGRolesInstanceCreateProfileAttribute Method (String, VGCommonProfileDataType, String, String, Boolean, 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 isReadOnlyForUI,
	bool isRequired,
	bool allowSearch,
	int viewOrder,
	string groupName,
	VGIProfileAttributeDefinition profileAttributeDefinition
)

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
IsReadonlyForAPI
isReadOnlyForUI
Type: SystemBoolean
IsReadonlyForUI
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: VGRoleProfileAttribute
Created profile attribute
See Also