vb System.Security.Permissions.HostProtectionAttribute.SelfAffectingThreading类(方法)实例源码

下面列出了vb System.Security.Permissions.HostProtectionAttribute.SelfAffectingThreading 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Security.Permission   
' Use the enumeration flags to indicate that this method exposes shared
' state, self-affecting process management, and self-affecting threading.
<HostProtectionAttribute(SharedState := True, _
    SelfAffectingProcessMgmt := True, _
    SelfAffectingThreading := True, UI := True)> _
Private Shared Sub ExecuteBreak()

    ' This method allows the user to quit the sample.
    Console.WriteLine("Executing Debugger.Break.")
    Debugger.Break()
    Debugger.Log(1, "info", "test message")
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号