单项选择题
You work as an application developer at Certkiller .com. You have been asked to profile a business application that can be accessible using the Event Log API. You have started by adding the following code to create a custom event log:
if (EventLog.SourceExists ("Application1"))
EventLog.DeleteEventSource ("Application1");
//Create new event log
EventLog.CreateEventSource ("Application1", "Profile");
You need to write an event to the Application1 event log. What code must you use?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
您可以在代码中创建以下变量:DateTime dateValue;此外,您编写代码以将时间存储在 dateValue 变量的当地时间。你是序列化所需的价值 dateValue 变量中,如果在一个时区 DateTime 对象序列化和反序列化一个不同的时区,表示本地时间结果应自动调整到第二个时区。你决定要使用的表达式。你应该做什么?()
A.使用dateValue.ToString("yyyy-MM-ddTHH:mm:ss.fffffff",CultureInfo.InvariantCulture)
B.使用dateValue.ToBinary()
C.使用dateValue.Kind
D.使用dateValue.Ticks -
单项选择题
您需要为应用程序的员工提供特定于区域设置的服务。此外,您必须确保您使用一个独特的国家的标识符,可以用作键。若要访问数据库记录包含有关国家的具体信息,虽然您使用最小的存储容量为存储的密钥。你应该做什么?()
A.CultureInfo.Name应作为标识符用于国家
B.CultureInfo.GetHashCode应作为标识符用于国家
C.RegionInfo.GetHashCode应作为标识符用于国家
D.RegionInfo.Name应作为标识符用于国家 -
单项选择题
YouarecreatinganassemblynamedAssembly1.Assembly1containsapublicmethod.TheglobalcachecontainsasecondassemblynamedAssembly2.YoumustensurethatthepublicmethodisonlycalledfromAssembly2.Whichpermissionclassshouldyouuse?()
A.GacIdentity Permission
B.Publisher Identity Permission
C.Data Protection Permission
D.Strong Name Identity Permission
