Which XML fragment should you use?

You are developing an assembly named ABC.Employee.dll for the human resources (HR) department site of your company. The assembly has the following properties:

* A namespace named ABC
* PublicKeyToken def148956c61a16b
* Version 1.0.0.0

The assembly also contains two Web Part classes named Benefits and ContactInformation. You may add additional Web Parts before you release the assembly.

You need to ensure that all the Web Parts in the assembly are trusted.

Which XML fragment should you use?

You are developing an assembly named ABC.Employee.dll for the human resources (HR) department site of your company. The assembly has the following properties:

* A namespace named ABC
* PublicKeyToken def148956c61a16b
* Version 1.0.0.0

The assembly also contains two Web Part classes named Benefits and ContactInformation. You may add additional Web Parts before you release the assembly.

You need to ensure that all the Web Parts in the assembly are trusted.

Which XML fragment should you use?

A.
< SafeControl
Assembly=”ABC.Employee, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=def148956c61a16b”
Namespace=”ABC.Employee”
TypeName=”*”
Safe=”True”
/ >

B.
< SafeControl
Assembly=”ABC.Employee, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=def148956c61a16b”
Namespace=”ABC.Employee”
TypeName=”Benefits, ContactInformation”
Safe=”True”
/ >

C.
< SafeControl
Assembly=”ABC.Employee, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=def148956c61a16b”
Namespace=”ABC”
TypeName=”*”
Safe=”True”
/ >

D.
< SafeControl
Assembly=”ABC.Employee, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=def148956c61a16b”
Namespace=”ABC”
TypeName=”Benefits, ContactInformation”
Safe=”True”
/ >



Leave a Reply 0

Your email address will not be published. Required fields are marked *