gdapi.Resource.getProperties C# (CSharp) Method

getProperties() public method

Gets the properties of the Resource.
public getProperties ( ) : string>.Dictionary
return string>.Dictionary
        public Dictionary<string, string> getProperties()
        {
            return this.m_dProperties;
        }

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new Resource.
 /// </summary>
 /// <param name="collectionType">Collection type to add the resource to</param>
 /// <param name="resource">Resource to add to the Collection</param>
 /// <returns>Newly created Resource</returns>
 public Resource create(string collectionType, Resource resource)
 {
     gdapi.WebRequest rRequestor = new gdapi.WebRequest(this);
     rRequestor.setType("POST");
     rRequestor.setBody(JsonConvert.SerializeObject(resource.getProperties()));
     rRequestor.setQuery(collectionType);
     return getResourceByRequest(rRequestor);
 }
All Usage Examples Of gdapi.Resource::getProperties