PackageManagement.Sdk.Request.Yield C# (CSharp) Method

Yield() public method

Yield values in a dictionary as key/value pairs. (one pair for each value in each key)
public Yield ( string[]>.Dictionary dictionary ) : bool
dictionary string[]>.Dictionary
return bool
        public bool Yield(Dictionary<string, string[]> dictionary) {
            return dictionary.All(Yield);
        }

Same methods

Request::Yield ( string[]>.KeyValuePair pair ) : bool

Usage Example

 public void GetFeatures(Request request)
 {
     request.Debug("Calling '{0}::GetFeatures'", PackageProviderName);
     request.Yield(new Dictionary<string, string[]>
     {
         [Constants.Features.SupportedExtensions] = new[] {"xml"},
         [Constants.Features.SupportedSchemes] = new[] {"http", "https", "file"}
     });
 }
All Usage Examples Of PackageManagement.Sdk.Request::Yield