vb System.Deployment.Application.GetManifestCompletedEventArgs.ApplicationManifest类(方法)实例源码

下面列出了vb System.Deployment.Application.GetManifestCompletedEventArgs.ApplicationManifest 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Deployment.Applicatio   
Private Function CheckForFullTrust(ByVal appManifest As XmlReader) As Boolean
    Dim isFullTrust As Boolean = False

    If (appManifest Is Nothing) Then
        Throw New ArgumentNullException("appManifest cannot be null.")
    End If

    Dim xaUnrestricted As XAttribute
    xaUnrestricted = XDocument.Load(appManifest) _
        .Element("{urn:schemas-microsoft-com:asm.v1}assembly") _
        .Element("{urn:schemas-microsoft-com:asm.v2}trustInfo") _
        .Element("{urn:schemas-microsoft-com:asm.v2}security") _
        .Element("{urn:schemas-microsoft-com:asm.v2}applicationRequestMinimum") _
        .Element("{urn:schemas-microsoft-com:asm.v2}PermissionSet") _
        .Attribute("Unrestricted")  ' Attributes never have a namespace


    If xaUnrestricted Then
        If xaUnrestricted.Value = "true" Then
            Return True
        End If
    End If

    Return False
End Function


问题


面经


文章

微信
公众号

扫码关注公众号