Which code segment should you use?

You are developing an auditing application to display the trusted ClickOnce applications that are installed on a computer. You need the auditing application to display the origin of
each trusted application. Which code segment should you use?

You are developing an auditing application to display the trusted ClickOnce applications that are installed on a computer. You need the auditing application to display the origin of
each trusted application. Which code segment should you use?

A.
Dim objTrusts As ApplicationTrustCollectionobjTrusts =
ApplicationSecurityManager.UserApplicationTrustsFor Each objTrust As ApplicationTrust In objTrusts Console.WriteLine(objTrust.ToString)Next

B.
Dim objTrusts As ApplicationTrustCollectionobjTrusts =
ApplicationSecurityManager.UserApplicationTrustsFor Each objTrust As ApplicationTrust In objTrusts Console.WriteLine(objTrust.ExtraInfo.ToString)Next

C.
Dim objTrusts As ApplicationTrustCollectionobjTrusts =
ApplicationSecurityManager.UserApplicationTrustsFor Each objTrust As ApplicationTrust In objTrusts Console.WriteLine(objTrust.ApplicationIdentity.FullName.ToString)Next

D.
Dim objTrusts As ApplicationTrustCollectionobjTrusts =
ApplicationSecurityManager.UserApplicationTrustsFor Each objTrust As Object In objTrusts Console.WriteLine(objTrust.ToString)Next



Leave a Reply 0

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