You are developing a SQL Server 2008 Reporting Services (SSRS) method for Company.com.
The codes in the report listed below:
Private Shared Function GetResultFromPar(ByVal TestValue As Double) As Double
If IsNothing(TestValue)
ThenReturn Nothing
ElseReturn InchValue * 3.15
End If
End Function
The above function will display error when you compile the codes.You should make sure that conditions listed below are required:
– The codes compile normally.
– The GetResultFromPar function could be implemented from other reports.
Which is the correct answer?
A.
You should delete the ByVal keyword from the function definition.
B.
You should delete the Shared keyword from the function definition.
C.
You should create the function as protected Shared instead of Public Shared.
D.
Before declaring the function as Public Shared, you should develop a custom assembly through utilizing Microsoft Visual Basic .NET.