C# Class Google.PowerShell.Common.ConfigPropertyNameAttribute

Inheritance: System.Attribute
Afficher le fichier Open project: GoogleCloudPlatform/google-cloud-powershell Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public ConfigPropertyNameAttribute ( string property ) : System
property string
Résultat System

SetConfigDefault() public méthode

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. ///
Résultat void

SetConfigDefault() public méthode

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. ///
Résultat void

SetObjectConfigDefault() public méthode

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.
Résultat void