System.ComponentModel.TypeDescriptionProvider.GetFullComponentName C# (CSharp) Method

GetFullComponentName() public method

public GetFullComponentName ( object component ) : string
component object
return string
        public virtual string GetFullComponentName(object component) {
            if (_parent != null) {
                return _parent.GetFullComponentName(component);
            }

            return GetTypeDescriptor(component).GetComponentName();
        }

Usage Example

 /// <summary>Gets the name of the specified component, or null if the component has no name.</summary>
 /// <returns>The name of the specified component.</returns>
 /// <param name="component">The specified component.</param>
 /// <exception cref="T:System.ArgumentNullException">
 ///   <paramref name="component" /> is null.</exception>
 public virtual string GetFullComponentName(object component)
 {
     if (_parent != null)
     {
         return(_parent.GetFullComponentName(component));
     }
     return(GetTypeDescriptor(component).GetComponentName());
 }