コード例 #1
0
 public bool IsParameterFilePath(string parameterName)
 {
     if (_prop != null && _prop.Owner != null)
     {
         IWebResourceFileUser wrf = _prop.Owner.ObjectInstance as IWebResourceFileUser;
         if (wrf != null)
         {
             return(wrf.IsParameterFilePath(_prop.Name));
         }
     }
     return(false);
 }
コード例 #2
0
 public string CreateWebFileAddress(string localFilePath, string parameterName)
 {
     if (_prop != null && _prop.Owner != null)
     {
         IWebResourceFileUser wrf = _prop.Owner.ObjectInstance as IWebResourceFileUser;
         if (wrf != null)
         {
             if (wrf.IsParameterFilePath(_prop.Name))
             {
                 return(wrf.CreateWebFileAddress(localFilePath, _prop.Name));
             }
         }
     }
     return(null);
 }