Ejemplo n.º 1
0
 internal static AscentRelease.Link getLink(AscentRelease.Links arLinks, String linkName)
 {
     try
     {
         object oLinkToGet = (object)linkName;
         return arLinks.get_Item(ref oLinkToGet);
     }
     catch (Exception e)
     {
         // if the link does not exist just return null
         return null;
     }
 }
Ejemplo n.º 2
0
 //*********************************************************
 // Function:	getCustomProperty()
 // Scope:		internal
 // Overview:	This is a static function that returns the
 //                value for a specific custom property whose
 //                name is passed in to search for.
 // Params:		properties- The custom properties to write to.
 //                name-	    Name of the CustomProperty to retreive.
 // Returns:		string-		The CustomProperty value.
 internal static String getCustomProperty(AscentRelease.CustomProperties properties, String name)
 {
     try
     {
         object oPropToGet = (object)name;
         AscentRelease.CustomProperty oProperty = properties.get_Item(ref oPropToGet);
         // no need to check for null as the get_item throws exception if not found
         return oProperty.Value;
     }
     catch (Exception e)
     {
         // if the link does not exist just return null
         return null;
     }
 }