G
Guest
I am new to VB.NET. Anyone could give a hint? Thanks.
What is the problem about the following code:
Dim myPrincipal As CustomPrincipal = New CustomPrincipal(id, roles)
where CustomPrincipal is constructor defined as
Public Sub CustomPrincipal(ByVal identity As IIdentity, ByVal roles As
String())
the error message:
Too many arguments to 'Public Sub New()'.
What is the problem about the following code:
Dim myPrincipal As CustomPrincipal = New CustomPrincipal(id, roles)
where CustomPrincipal is constructor defined as
Public Sub CustomPrincipal(ByVal identity As IIdentity, ByVal roles As
String())
the error message:
Too many arguments to 'Public Sub New()'.