NVelocity.Runtime.RuntimeInstance.GetProperty C# (CSharp) Method

GetProperty() public method

Allows an external caller to get a property. The calling routine is required to know the type, as this routine will return an Object, as that is what properties can be.
public GetProperty ( String key ) : Object
key String property to return
return Object
		public Object GetProperty(String key)
		{
			return configuration.GetProperty(key);
		}

Usage Example

示例#1
0
 /// <summary>
 /// Allows an external caller to get a property.  The calling
 /// routine is required to know the type, as this routine
 /// will return an Object, as that is what properties can be.
 /// </summary>
 /// <param name="key">property to return</param>
 public static Object GetProperty(String key)
 {
     return(ri.GetProperty(key));
 }