Class Resource
Nazwa przestrzeń: Aspose.Tasks Zgromadzenie: Aspose.Tasks.dll (25.4.0)
Przedstawia zasoby w projekcie.
public class Resource : IEquatable<resource>
Inheritance
Implements
Dziedziczeni członkowie
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
ACWP
Otrzymuje lub ustawia wartość ACWP.
[EntityField]
public double ACWP { get; set; }
Wartość nieruchomości
AccrueAt
Otrzymuje lub ustawia wartość AccrueAt.
[EntityField]
public CostAccrualType AccrueAt { get; set; }
Wartość nieruchomości
ActiveDirectoryGuid
Otrzymuje lub ustawia wartość ActiveDirectoryGuid.
[EntityField]
public string ActiveDirectoryGuid { get; set; }
Wartość nieruchomości
ActualCost
Otrzymuje lub ustawia wartość ActualCost.
[EntityField]
public decimal ActualCost { get; set; }
Wartość nieruchomości
ActualOvertimeCost
Otrzymuje lub ustawia wartość ActualOvertimeCost.
[EntityField]
public decimal ActualOvertimeCost { get; set; }
Wartość nieruchomości
ActualOvertimeWork
otrzymuje lub ustawia wartość ActualOvertimeWork.
[EntityField]
public Duration ActualOvertimeWork { get; set; }
Wartość nieruchomości
ActualOvertimeWorkProtected
Otrzymuje lub ustawia wartość ActualOvertimeWorkProtected.
[EntityField]
public Duration ActualOvertimeWorkProtected { get; set; }
Wartość nieruchomości
ActualWork
Otrzymuje lub ustawia wartość ActualWork.
[EntityField]
public Duration ActualWork { get; set; }
Wartość nieruchomości
ActualWorkProtected
otrzymuje lub ustawia wartość ActualWorkProtected.
[EntityField]
public Duration ActualWorkProtected { get; set; }
Wartość nieruchomości
AssignmentOwner
Otrzymuje lub ustawia wartość AssignmentOwner.
[EntityField]
public string AssignmentOwner { get; set; }
Wartość nieruchomości
AssignmentOwnerGuid
Otrzymuje lub ustawia wartość AssignmentOwnerGuid.
[EntityField]
public string AssignmentOwnerGuid { get; set; }
Wartość nieruchomości
Assignments
Otrzymuje zbiór zadań zasobów dla tego obiektu.
public ResourceAssignmentCollection Assignments { get; }
Wartość nieruchomości
AvailabilityPeriods
Otrzymuje przykład klasy Aspose.Tasks.AvailabilityPeriodCollection.Zbiór okresów, w których dostępny jest zasób.
public AvailabilityPeriodCollection AvailabilityPeriods { get; }
Wartość nieruchomości
AvailableFrom
Otrzymuje lub ustawia wartość dostępną.
[EntityField]
public DateTime AvailableFrom { get; set; }
Wartość nieruchomości
AvailableTo
otrzymuje lub ustawia wartość dostępną.
[EntityField]
public DateTime AvailableTo { get; set; }
Wartość nieruchomości
BCWP
Otrzymuje lub ustawia wartość BCWP.
[EntityField]
public double BCWP { get; set; }
Wartość nieruchomości
BCWS
Otrzymuje lub ustawia wartość BCWS.
[EntityField]
public double BCWS { get; set; }
Wartość nieruchomości
Baselines
Otrzymuje przykłady BaselineCollection dla tego obiektu.Wartości bazowe dla zasobów.
public BaselineCollection Baselines { get; }
Wartość nieruchomości
BookingType
Otrzymuje lub ustawia wartość BookingType.
[EntityField]
public BookingType BookingType { get; set; }
Wartość nieruchomości
BudgetCost
Otrzymuje lub ustala wartość budżetu.
[EntityField]
public decimal BudgetCost { get; set; }
Wartość nieruchomości
BudgetWork
Otrzymuje lub ustala wartość budżetu.
[EntityField]
public Duration BudgetWork { get; set; }
Wartość nieruchomości
CV
Otrzymuje lub ustawia wartość CV.
[EntityField]
public double CV { get; set; }
Wartość nieruchomości
Calendar
Otrzymuje lub ustawia wartość kalendarza.
[EntityField]
public Calendar Calendar { get; set; }
Wartość nieruchomości
CanLevel
Otrzymuje lub ustawia wartość wskazującą, czy CanLevel jest ustawiony, czy nie.
[EntityField]
public NullableBool CanLevel { get; set; }
Wartość nieruchomości
Code
otrzymuje lub ustawia wartość kodu.
[EntityField]
public string Code { get; set; }
Wartość nieruchomości
Cost
Otrzymuje lub ustala wartość kosztów.
[EntityField]
public decimal Cost { get; set; }
Wartość nieruchomości
CostCenter
Otrzymuje lub ustawia wartość CostCenter.
[EntityField]
public string CostCenter { get; set; }
Wartość nieruchomości
CostPerUse
Otrzymuje lub ustawia wartość CostPerUse.
[EntityField]
public decimal CostPerUse { get; set; }
Wartość nieruchomości
CostVariance
Otrzymuje lub ustawia wartość CostVariance.
[EntityField]
public double CostVariance { get; set; }
Wartość nieruchomości
Created
Otrzymuje lub ustawia wartość stworzoną.
[EntityField]
public DateTime Created { get; set; }
Wartość nieruchomości
adres e-mail
Otrzymuje lub ustawia wartość EMailAddress.
[EntityField]
public string EMailAddress { get; set; }
Wartość nieruchomości
ExtendedAttributes
Otrzymuje wartości rozszerzonego atrybutu.
public ExtendedAttributeCollection ExtendedAttributes { get; }
Wartość nieruchomości
Remarks
Potrzebne są dwa kawałki danych - wskaźnik z powrotem do rozszerzonej tabeli atrybutówktóre są określone albo przez unikalny ID lub ID pola, a także wartośćktóry jest określony albo wartością, albo wskaźnikiem z powrotem do listy wartości.
Finish
Otrzymuje lub ustawia wartość końcową.
[EntityField]
public DateTime Finish { get; set; }
Wartość nieruchomości
Group
otrzymuje lub ustanawia wartość grupy.
[EntityField]
public string Group { get; set; }
Wartość nieruchomości
Guid
Otrzymuje lub ustawia wartość przewodnika.
[EntityField]
public string Guid { get; set; }
Wartość nieruchomości
Hyperlink
otrzymuje lub ustawia tytuł lub tekst wyjaśniający hiperłącza powiązanego z zasobem.
[EntityField]
public string Hyperlink { get; set; }
Wartość nieruchomości
HyperlinkAddress
Otrzymuje lub ustawia adres dla hiperłącza powiązanego z zasobem.
[EntityField]
public string HyperlinkAddress { get; set; }
Wartość nieruchomości
Remarks
Pełna adresa (Hyperlink Href w programie Microsoft Project) hiperłącza to połączenie HyperlinkAddress i HyperlinkSubAddress.
HyperlinkSubAddress
Otrzymuje lub ustawia określoną lokalizację w dokumencie w hiperłącze powiązanej z zasobem.
[EntityField]
public string HyperlinkSubAddress { get; set; }
Wartość nieruchomości
Remarks
Pełna adresa (Hyperlink Href w programie Microsoft Project) hiperłącza to połączenie HyperlinkAddress i HyperlinkSubAddress.
Id
Otrzymuje lub ustawia wartość ID.
[EntityField]
public int Id { get; set; }
Wartość nieruchomości
Inactive
Otrzymuje lub ustawia wartość wskazującą, czy Inaktywny jest ustawiony, czy nie.
[EntityField]
public NullableBool Inactive { get; set; }
Wartość nieruchomości
Initials
Otrzymuje lub ustawia wartość Initials.
[EntityField]
public string Initials { get; set; }
Wartość nieruchomości
IsBudget
Otrzymuje lub ustawia wartość wskazującą, czy budżet IsBudget jest ustawiony, czy nie.
[EntityField]
public NullableBool IsBudget { get; set; }
Wartość nieruchomości
IsCostResource
Otrzymuje lub ustawia wartość wskazującą, czy IsCostResource jest ustawiony, czy nie.
[EntityField]
public NullableBool IsCostResource { get; set; }
Wartość nieruchomości
IsEnterprise
Otrzymuje lub ustawia wartość wskazującą, czy IsEnterprise jest ustawiony, czy nie.
[EntityField]
public NullableBool IsEnterprise { get; set; }
Wartość nieruchomości
IsGeneric
Otrzymuje lub ustawia wartość wskazującą, czy IsGeneric jest ustawiony, czy nie.
[EntityField]
public NullableBool IsGeneric { get; set; }
Wartość nieruchomości
IsNull
Otrzymuje lub ustawia wartość wskazującą, czy IsNull jest ustawiony, czy nie.
[EntityField]
public NullableBool IsNull { get; set; }
Wartość nieruchomości
IsRoot
Otrzymuje flagę wskazującą, czy zasób jest źródłem korzeniowym.Źródło korzeniowe jest specjalnym zasobem, który ma na celu wsparcie wewnętrznychFormaty MS Project i nie mają być używane bezpośrednio z kodu użytkownika.
public virtual bool IsRoot { get; }
Wartość nieruchomości
IsTeamAssignmentPool
Otrzymuje lub ustawia wartość wskazującą, czy IsTeamAssignmentPool jest ustawiony, czy nie.
[EntityField]
public bool IsTeamAssignmentPool { get; set; }
Wartość nieruchomości
MaterialLabel
Otrzymuje lub ustawia wartość materiału.
[EntityField]
public string MaterialLabel { get; set; }
Wartość nieruchomości
MaxUnits
Otrzymuje lub ustawia wartość MaxUnits.
[EntityField]
public double MaxUnits { get; set; }
Wartość nieruchomości
Name
otrzymuje lub ustawia wartość nazwy.
[EntityField]
public string Name { get; set; }
Wartość nieruchomości
NotesRTF
Otrzymuje lub ustawia wartość NotesRTF.
[EntityField]
public string NotesRTF { get; set; }
Wartość nieruchomości
NotesText
Otrzymuje lub ustawia wartość NotesText.
[EntityField]
public string NotesText { get; set; }
Wartość nieruchomości
OutlineCode
Otrzymuje obiekt OutlineCodeCollection.Wartość kodu wyjściowego.
public OutlineCodeCollection OutlineCode { get; }
Wartość nieruchomości
Remarks
Potrzebne są dwa kawałki danych - wskaźnik do tabeli kodów wyjściowych, któryjest określony przez FieldID, a wartość, która jest określona przezwskaźnik ValueID lub ValueGUID do listy wartości.
Overallocated
Otrzymuje lub ustawia wartość wskazującą, czy Overallocated jest ustawiony, czy nie.
[EntityField]
public NullableBool Overallocated { get; set; }
Wartość nieruchomości
OvertimeCost
Otrzymuje lub ustawia wartość OvertimeCost.
[EntityField]
public decimal OvertimeCost { get; set; }
Wartość nieruchomości
OvertimeRate
Otrzymuje lub ustawia wartość OvertimeRate.
[EntityField]
public decimal OvertimeRate { get; set; }
Wartość nieruchomości
OvertimeRateFormat
Otrzymuje lub ustawia wartość OvertimeRateFormat.
[EntityField]
public RateFormatType OvertimeRateFormat { get; set; }
Wartość nieruchomości
OvertimeWork
Otrzymuje lub ustawia wartość OvertimeWork.
[EntityField]
public Duration OvertimeWork { get; set; }
Wartość nieruchomości
ParentProject
Otrzymujemy projekt rodzinny dla tego kontenera.
public Project ParentProject { get; }
Wartość nieruchomości
PeakUnits
Otrzymuje lub ustawia wartość PeakUnits.
[EntityField]
public double PeakUnits { get; set; }
Wartość nieruchomości
PercentWorkComplete
Otrzymuje lub ustawia wartość PercentWorkComplete.
[EntityField]
public int PercentWorkComplete { get; set; }
Wartość nieruchomości
Phonetics
Otrzymuje lub ustawia wartość Phonetics.
[EntityField]
public string Phonetics { get; set; }
Wartość nieruchomości
Rates
Otrzymuje przykład klasy Aspose.Tasks.RateCollection dla tego obiektu.Zbiór okresów i stawek związanych z każdym z nich.
public RateCollection Rates { get; }
Wartość nieruchomości
RegularWork
Otrzymuje lub ustawia wartość RegularWork.
[EntityField]
public Duration RegularWork { get; set; }
Wartość nieruchomości
RemainingCost
Otrzymuje lub ustawia wartość RemainingCost.
[EntityField]
public decimal RemainingCost { get; set; }
Wartość nieruchomości
RemainingOvertimeCost
Otrzymuje lub ustawia wartość RemainingOvertimeCost.
[EntityField]
public decimal RemainingOvertimeCost { get; set; }
Wartość nieruchomości
RemainingOvertimeWork
Otrzymuje lub ustawia wartość RemainingOvertimeWork.
[EntityField]
public Duration RemainingOvertimeWork { get; set; }
Wartość nieruchomości
RemainingWork
Otrzymuje lub ustawia wartość RemainingWork.
[EntityField]
public Duration RemainingWork { get; set; }
Wartość nieruchomości
SV
Otrzymuje lub ustawia wartość SV.
[EntityField]
public double SV { get; set; }
Wartość nieruchomości
StandardRate
Otrzymuje lub ustawia wartość StandardRate.
[EntityField]
public decimal StandardRate { get; set; }
Wartość nieruchomości
StandardRateFormat
Otrzymuje lub ustawia wartość StandardRateFormat.
[EntityField]
public RateFormatType StandardRateFormat { get; set; }
Wartość nieruchomości
Start
Otrzymuje lub ustawia wartość Start.
[EntityField]
public DateTime Start { get; set; }
Wartość nieruchomości
TimephasedData
Uzyskaj lub ustaw instancję klasy Aspose.Tasks.TimephasedDataCollection dla tego obiektu.
public TimephasedDataCollection TimephasedData { get; set; }
Wartość nieruchomości
Remarks
Czytanie jest obsługiwane tylko w formacie XML.
Type
otrzymuje lub ustawia wartość typu.
[EntityField]
public ResourceType Type { get; set; }
Wartość nieruchomości
Uid
Otrzymuje lub ustawia wartość Uid.
[EntityField]
public int Uid { get; set; }
Wartość nieruchomości
WindowsUserAccount
Otrzymuje lub ustawia wartość konta WindowsUserAccount.
[EntityField]
public string WindowsUserAccount { get; set; }
Wartość nieruchomości
Work
otrzymuje lub ustanawia wartość pracy.
[EntityField]
public Duration Work { get; set; }
Wartość nieruchomości
WorkVariance
Otrzymuje lub ustawia wartość WorkVariance.
[EntityField]
public double WorkVariance { get; set; }
Wartość nieruchomości
Workgroup
otrzymuje lub ustala wartość grupy roboczej.
[EntityField]
public WorkGroupType Workgroup { get; set; }
Wartość nieruchomości
Methods
Delete()
Usunąć zasób i jego zadania z projektu.
public void Delete()
Equals(Resource)
Powraca wartość wskazującą, czy ta instancja jest równa określonej instancji klasy Aspose.Tasks.Resource.
public bool Equals(Resource other)
Parameters
other
Resource
Przykład określony w klasie Aspose.Tasks.Resource do porównania z tą instancją.
Returns
True w przypadku, gdy określona instancja Aspose.Tasks.Klasy zasobów ma taką samą wartość Uid jak ta; w przeciwnym razie, fałszywe.
Equals(Obiekt)
Powraca wartość wskazującą, czy ta instancja jest równa określonemu przedmiotowi.
public override bool Equals(object obj)
Parameters
obj
object
Celem jest porównanie z tą instancją.
Returns
True jeżeli określony obiekt jest zasobem, który ma taką samą wartość Uid jak ta instancja; w przeciwnym razie, fałszywe.
Zdobądź>(Kluczowe, rsckey=» » »)
Zwraca wartość, do której nieruchomość jest mapowana w tym pojemniku.
public T Get<t>(Key<t, rsckey=""> key)
Parameters
określony klucz nieruchomości. Aspose.Tasks.Rsc, aby uzyskać klucz nieruchomości.
Returns
T
wartość, do której nieruchomość jest mapowana w tym pojemniku.
Rodzaj parametrów
T
Rodzaj mapowanej wartości.
GetHashCode()
Powraca wartość kodu hash na przykład klasy Aspose.Tasks.Resource.
public override int GetHashCode()
Returns
zwraca wartość kodu hash dla tego obiektu.
GetTimephasedData(DataType, DataType, DataType)
Powraca przykład klasy Aspose.Tasks.TimephasedDataCollection dla tego obiektu z Aspose.Tasks.Resource.TimephasedData wartości w danym terminie rozpoczęcia i zakończenia określonego Aspose.Tasks.TimephasedDataType.
public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end, TimephasedDataType timephasedType)
Parameters
start
DateTime
Data rozpoczęcia daty fazy czasu.
end
DateTime
Data zakończenia daty fazy czasu.
timephasedType
TimephasedDataType
Rodzaj danych fazy czasu (Aspose.Tasks.TimephasedDataType).
Returns
Zestaw danych Aspose.Tasks.Resource.TimephasedData.
GetTimephasedData(Data czasu, data czasu)
Powrót Aspose.Tasks.TimephasedDataCollection dla tego obiektu z Aspose.Tasks.Resource.TimephasedDatavalues w danym terminie rozpoczęcia i zakończenia.
public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end)
Parameters
start
DateTime
Data rozpoczęcia daty fazy czasu.
end
DateTime
Data zakończenia daty fazy czasu.
Returns
Zestaw danych Aspose.Tasks.TimephasedData.
Zestaw T>(Kluczowe, rsckey=» » » T)
Pokaż określony obiekt do określonej wartości w tym pojemniku.
public void Set<t>(Key<t, rsckey=""> key, T val)
Parameters
określony klucz nieruchomości. Aspose.Tasks.Rsc, aby uzyskać klucz nieruchomości.
val
T
I wartość .
Rodzaj parametrów
T
Rodzaj mapowanej wartości.
Set(Kluczowy<datetime, rsckey=„Data czasu”)
Pokaż określony obiekt do określonej wartości w tym pojemniku.
public void Set(Key<datetime, rsckey=""> key, DateTime val)
Parameters
key
Key
• <
DateTime
, RscKey
>
określony klucz nieruchomości. Aspose.Tasks.Rsc, aby uzyskać klucz nieruchomości.
val
DateTime
I wartość .
ToString()
Powróci krótka łańcuchowa reprezentacja instancji klasy Aspose.Tasks.Resource.Dokładne szczegóły prezentacji nie są określone i podlegają zmianie.
public override string ToString()
Returns
Krótka strona, która reprezentuje obiekt zasobów.</datetime,></datetime,></t,></t,></t,></t,></t,></t,>