C# Class Google.PowerShell.Common.ConfigPropertyNameAttribute

Inheritance: System.Attribute
显示文件 Open project: GoogleCloudPlatform/google-cloud-powershell Class Usage Examples

Public Methods

Method Description
ConfigPropertyNameAttribute ( string property ) : System
SetConfigDefault ( FieldInfo field, GCloudCmdlet instance ) : void

Gives the field a default value from the gcould config.

SetConfigDefault ( PropertyInfo property, GCloudCmdlet instance ) : void

Gives the property a default value from the gcould config if needed.

SetObjectConfigDefault ( PropertyInfo property, object instance ) : void

Gives the property a default value from the gcould config. This sets the property regardless of its current value.

Method Details

ConfigPropertyNameAttribute() public method

public ConfigPropertyNameAttribute ( string property ) : System
property string
return System

SetConfigDefault() public method

Gives the field a default value from the gcould config.
public SetConfigDefault ( FieldInfo field, GCloudCmdlet instance ) : void
field System.Reflection.FieldInfo /// The field info. ///
instance GCloudCmdlet /// The instance the field is a member of. ///
return void

SetConfigDefault() public method

Gives the property a default value from the gcould config if needed.
public SetConfigDefault ( PropertyInfo property, GCloudCmdlet instance ) : void
property System.Reflection.PropertyInfo /// The property info. ///
instance GCloudCmdlet /// The instance the property is a member of. ///
return void

SetObjectConfigDefault() public method

Gives the property a default value from the gcould config. This sets the property regardless of its current value.
public SetObjectConfigDefault ( PropertyInfo property, object instance ) : void
property System.Reflection.PropertyInfo The property to set.
instance object The instance that contains the property to set.
return void