System.Xml.XmlResolver.GetEntity C# (CSharp) Méthode

GetEntity() public abstract méthode

public abstract GetEntity ( Uri absoluteUri, string role, Type ofObjectToReturn ) : Object
absoluteUri Uri
role string
ofObjectToReturn Type
Résultat Object
        public abstract Object GetEntity(Uri absoluteUri,
                                         string role,
                                         Type ofObjectToReturn);

Usage Example

Exemple #1
0
 // instance members
 public override object GetEntity(Uri absoluteUri, string role,
                                  Type ofObjectToReturn)
 {
     if (SecurityManager.SecurityEnabled)
     {
         // in case the security manager was switched after the constructor was called
         if (permissionSet == null)
         {
             throw new SecurityException(
                       S._("Security Manager wasn't active when instance was created."));
         }
         permissionSet.PermitOnly();
     }
     return(resolver.GetEntity(absoluteUri, role, ofObjectToReturn));
 }
All Usage Examples Of System.Xml.XmlResolver::GetEntity