Share via


InjectionMethodElement.Key Property

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

Key of the element.

Namespace:  Microsoft.Practices.Unity.Configuration
Assembly:  Microsoft.Practices.Unity.Configuration (in Microsoft.Practices.Unity.Configuration.dll)

Syntax

'Declaration
<ConfigurationPropertyAttribute("key", IsRequired := False, DefaultValue := "")> _
Public Overridable Property Key As String
[ConfigurationPropertyAttribute("key", IsRequired = false, DefaultValue = "")]
public virtual string Key { get; set; }
[ConfigurationPropertyAttribute(L"key", IsRequired = false, DefaultValue = L"")]
public:
virtual property String^ Key {
    String^ get ();
    void set (String^ value);
}
public function get Key () : String
public function set Key (value : String)

Remarks

This property is used to allow configuration for multiple calls on the same method.

See Also

InjectionMethodElement Class

Microsoft.Practices.Unity.Configuration Namespace