C# 클래스 OneGet.Sdk.Request

파일 보기 프로젝트 열기: PowerShell/SmartPackageProvider 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddMetadata string
Error bool
FixMeFormat string
FormatMessageString string
GetMessageStringInternal string
GetOptionValue string
WriteError bool
Yield bool
Yield bool

공개 메소드들

메소드 설명
AddDependency ( string providerName, string packageName, string version, string source, string appliesTo ) : string
AddDirectory ( string elementPath, string directoryName, string location, string root, bool isKey ) : string
AddEntity ( string name, string regid, string role, string thumbprint ) : string
AddEvidence ( System.DateTime dateTime, string deviceId ) : string
AddFile ( string elementPath, string fileName, string location, string root, bool isKey, long size, string version ) : string
AddLink ( Uri referenceUri, string relationship, string mediaType, string ownership, string use, string appliesToMedia, string artifact ) : string
AddMeta ( string elementPath ) : string
AddMetadata ( string name, string value ) : string
AddMetadata ( string elementPath, string name, string value ) : string
AddPayload ( ) : string
AddProcess ( string elementPath, string processName, int pid ) : string
AddResource ( string elementPath, string type ) : string
AskPermission ( string permission ) : bool
CompleteProgress ( int activityId, bool isSuccessful ) : bool
Debug ( string messageText ) : bool
GetMessageString ( string messageText, string defaultText ) : string
GetOptionValues ( string key ) : IEnumerable

Message ( string messageText ) : bool
Progress ( int activityId, int progressPercentage, string messageText ) : bool
ShouldBootstrapProvider ( string requestor, string providerName, string providerVersion, string providerType, string location, string destination ) : bool
ShouldContinueWithUntrustedPackageSource ( string package, string packageSource ) : bool
StartProgress ( int parentActivityId, string messageText ) : int
Verbose ( string messageText ) : bool
Warning ( string messageText ) : bool
YieldDynamicOption ( string name, string expectedType, bool isRequired ) : bool

Used by a provider to return the fields for a Metadata Definition The cmdlets can use this to supply tab-completion for metadata to the user.

YieldDynamicOption ( string name, string expectedType, bool isRequired, IEnumerable permittedValues ) : bool
YieldKeyValuePair ( string key, string value ) : bool
YieldPackageSource ( string name, string location, bool isTrusted, bool isRegistered, bool isValidated ) : bool

Used by a provider to return fields for a package source (repository)

YieldSoftwareIdentity ( string fastPath, string name, string version, string versionScheme, string summary, string source, string searchKey, string fullPath, string packageFileName ) : string

Used by a provider to return fields for a SoftwareIdentity.

YieldValue ( string value ) : bool

비공개 메소드들

메소드 설명
AddMetadata ( string elementPath, Uri @namespace, string name, string value ) : string
Error ( string id, string category, string targetObjectValue, string messageText ) : bool
FixMeFormat ( string formatString, object args ) : string
FormatMessageString ( string messageText ) : string
GetMessageStringInternal ( string messageText ) : string
GetOptionValue ( string name ) : string
WriteError ( ErrorCategory category, string targetObjectValue, string messageText ) : bool
Yield ( string[]>.Dictionary dictionary ) : bool

Yield values in a dictionary as key/value pairs. (one pair for each value in each key)

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

메소드 상세

AddDependency() 공개 추상적인 메소드

public abstract AddDependency ( string providerName, string packageName, string version, string source, string appliesTo ) : string
providerName string
packageName string
version string
source string
appliesTo string
리턴 string

AddDirectory() 공개 추상적인 메소드

public abstract AddDirectory ( string elementPath, string directoryName, string location, string root, bool isKey ) : string
elementPath string
directoryName string
location string
root string
isKey bool
리턴 string

AddEntity() 공개 추상적인 메소드

public abstract AddEntity ( string name, string regid, string role, string thumbprint ) : string
name string
regid string
role string
thumbprint string
리턴 string

AddEvidence() 공개 추상적인 메소드

public abstract AddEvidence ( System.DateTime dateTime, string deviceId ) : string
dateTime System.DateTime
deviceId string
리턴 string

AddFile() 공개 추상적인 메소드

public abstract AddFile ( string elementPath, string fileName, string location, string root, bool isKey, long size, string version ) : string
elementPath string
fileName string
location string
root string
isKey bool
size long
version string
리턴 string

AddLink() 공개 추상적인 메소드

public abstract AddLink ( Uri referenceUri, string relationship, string mediaType, string ownership, string use, string appliesToMedia, string artifact ) : string
referenceUri System.Uri
relationship string
mediaType string
ownership string
use string
appliesToMedia string
artifact string
리턴 string

AddMeta() 공개 추상적인 메소드

public abstract AddMeta ( string elementPath ) : string
elementPath string
리턴 string

AddMetadata() 공개 추상적인 메소드

public abstract AddMetadata ( string name, string value ) : string
name string
value string
리턴 string

AddMetadata() 공개 추상적인 메소드

public abstract AddMetadata ( string elementPath, string name, string value ) : string
elementPath string
name string
value string
리턴 string

AddPayload() 공개 추상적인 메소드

public abstract AddPayload ( ) : string
리턴 string

AddProcess() 공개 추상적인 메소드

public abstract AddProcess ( string elementPath, string processName, int pid ) : string
elementPath string
processName string
pid int
리턴 string

AddResource() 공개 추상적인 메소드

public abstract AddResource ( string elementPath, string type ) : string
elementPath string
type string
리턴 string

AskPermission() 공개 추상적인 메소드

public abstract AskPermission ( string permission ) : bool
permission string
리턴 bool

CompleteProgress() 공개 추상적인 메소드

public abstract CompleteProgress ( int activityId, bool isSuccessful ) : bool
activityId int
isSuccessful bool
리턴 bool

Debug() 공개 추상적인 메소드

public abstract Debug ( string messageText ) : bool
messageText string
리턴 bool

GetMessageString() 공개 추상적인 메소드

public abstract GetMessageString ( string messageText, string defaultText ) : string
messageText string
defaultText string
리턴 string

GetOptionValues() 공개 추상적인 메소드

public abstract GetOptionValues ( string key ) : IEnumerable
key string
리턴 IEnumerable

Message() 공개 추상적인 메소드

public abstract Message ( string messageText ) : bool
messageText string
리턴 bool

Progress() 공개 추상적인 메소드

public abstract Progress ( int activityId, int progressPercentage, string messageText ) : bool
activityId int
progressPercentage int
messageText string
리턴 bool

ShouldBootstrapProvider() 공개 추상적인 메소드

public abstract ShouldBootstrapProvider ( string requestor, string providerName, string providerVersion, string providerType, string location, string destination ) : bool
requestor string
providerName string
providerVersion string
providerType string
location string
destination string
리턴 bool

ShouldContinueWithUntrustedPackageSource() 공개 추상적인 메소드

public abstract ShouldContinueWithUntrustedPackageSource ( string package, string packageSource ) : bool
package string
packageSource string
리턴 bool

StartProgress() 공개 추상적인 메소드

public abstract StartProgress ( int parentActivityId, string messageText ) : int
parentActivityId int
messageText string
리턴 int

Verbose() 공개 추상적인 메소드

public abstract Verbose ( string messageText ) : bool
messageText string
리턴 bool

Warning() 공개 추상적인 메소드

public abstract Warning ( string messageText ) : bool
messageText string
리턴 bool

YieldDynamicOption() 공개 추상적인 메소드

Used by a provider to return the fields for a Metadata Definition The cmdlets can use this to supply tab-completion for metadata to the user.
public abstract YieldDynamicOption ( string name, string expectedType, bool isRequired ) : bool
name string the provider-defined name of the option
expectedType string one of ['string','int','path','switch']
isRequired bool if the parameter is mandatory
리턴 bool

YieldDynamicOption() 공개 메소드

public YieldDynamicOption ( string name, string expectedType, bool isRequired, IEnumerable permittedValues ) : bool
name string
expectedType string
isRequired bool
permittedValues IEnumerable
리턴 bool

YieldKeyValuePair() 공개 추상적인 메소드

public abstract YieldKeyValuePair ( string key, string value ) : bool
key string
value string
리턴 bool

YieldPackageSource() 공개 추상적인 메소드

Used by a provider to return fields for a package source (repository)
public abstract YieldPackageSource ( string name, string location, bool isTrusted, bool isRegistered, bool isValidated ) : bool
name string
location string
isTrusted bool
isRegistered bool
isValidated bool
리턴 bool

YieldSoftwareIdentity() 공개 추상적인 메소드

Used by a provider to return fields for a SoftwareIdentity.
public abstract YieldSoftwareIdentity ( string fastPath, string name, string version, string versionScheme, string summary, string source, string searchKey, string fullPath, string packageFileName ) : string
fastPath string
name string
version string
versionScheme string
summary string
source string
searchKey string
fullPath string
packageFileName string
리턴 string

YieldValue() 공개 추상적인 메소드

public abstract YieldValue ( string value ) : bool
value string
리턴 bool